Uploaded image for project: 'Content IO'
  1. Content IO
  2. CONTENTIO-350

SQL export fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.23.3, 3.27.0
    • None
    • None
    • 4.11M3
    • Oui

      .sql.SQLException: The SQL query failed : INSERT INTO ODF_Program_DegreeType VALUES ('9223372036854775807', 'Other')
      at org.ametys.plugins.contentio.export.sql.CreateSqlTableComponent#_executeQueries:1053
      at org.ametys.plugins.contentio.export.sql.CreateSqlTableComponent#executeQueries:1001
      at org.ametys.plugins.contentio.export.sql.CreateSqlTableComponent#createTables:168
      at org.ametys.plugins.contentio.export.sql.ExportManager#export:287
      at org.ametys.plugins.contentio.export.sql.ContentExportSchedulable#execute:60
      at org.ametys.core.schedule.AmetysJob#execute:157
      at org.quartz.core.JobRunShell#run:202
      at org.quartz.simpl.SimpleThreadPool$WorkerThread#run:573
      
      Caused by: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Out of range value for column 'key_enum' at row 1
      at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping#translateException:96
      at com.mysql.cj.jdbc.ClientPreparedStatement#executeInternal:988
      at com.mysql.cj.jdbc.ClientPreparedStatement#execute:383
      at org.apache.commons.dbcp2.DelegatingPreparedStatement#execute:95
      at org.apache.commons.dbcp2.DelegatingPreparedStatement#execute:95
      at org.ametys.plugins.contentio.export.sql.CreateSqlTableComponent#_executeQueries:1049
      ... 7 more
      

      CreateSqlTableComponent#409 remplacer INT par BIGINT car j’ai un id qui vaut 9223372036854775807 (validé par une classe patchée sur le projet qui pose problème)

      Ce n'est peut être pas normal d'avoir un id "9223372036854775807" aussi important.

            bmaurel Bérénice Maurel
            lperier Laurence Perier
            Bérénice Maurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: