-
-
Notifications
You must be signed in to change notification settings - Fork 632
Open
Description
Greetings!
From time to time, the following database-error shows up in our console, indicating that an SQL-command could not be executed successfully.
[15:57:23 WARN]: java.sql.BatchUpdateException: Data truncation: Data too long for column 'art' at row 1
[15:57:23 WARN]: at com.mysql.cj.jdbc.exceptions.SQLError.createBatchUpdateException(SQLError.java:214)
[15:57:23 WARN]: at com.mysql.cj.jdbc.ClientPreparedStatement.executeBatchWithMultiValuesClause(ClientPreparedStatement.java:784)
[15:57:23 WARN]: at com.mysql.cj.jdbc.ClientPreparedStatement.executeBatchInternal(ClientPreparedStatement.java:457)
[15:57:23 WARN]: at com.mysql.cj.jdbc.StatementImpl.executeBatch(StatementImpl.java:858)
[15:57:23 WARN]: at CoreProtect-23.3.jar//net.coreprotect.hikari.pool.ProxyStatement.executeBatch(ProxyStatement.java:127)
[15:57:23 WARN]: at CoreProtect-23.3.jar//net.coreprotect.hikari.pool.HikariProxyPreparedStatement.executeBatch(HikariProxyPreparedStatement.java)
[15:57:23 WARN]: at CoreProtect-23.3.jar//net.coreprotect.consumer.process.Process.commit(Process.java:303)
[15:57:23 WARN]: at CoreProtect-23.3.jar//net.coreprotect.consumer.process.Process.processConsumer(Process.java:258)
[15:57:23 WARN]: at CoreProtect-23.3.jar//net.coreprotect.consumer.Consumer.run(Consumer.java:133)
[15:57:23 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)
[15:57:23 WARN]: Caused by: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column 'art' at row 1
[15:57:23 WARN]: at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:96)
[15:57:23 WARN]: at com.mysql.cj.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:612)
[15:57:23 WARN]: at com.mysql.cj.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:320)
[15:57:23 WARN]: at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1168)
[15:57:23 WARN]: at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1103)
[15:57:23 WARN]: at com.mysql.cj.jdbc.ClientPreparedStatement.executeLargeUpdate(ClientPreparedStatement.java:1450)
[15:57:23 WARN]: at com.mysql.cj.jdbc.ClientPreparedStatement.executeBatchWithMultiValuesClause(ClientPreparedStatement.java:745)
[15:57:23 WARN]: ... 8 more
Seeing how co_art_map is the only table containing an art-column, it looks like the plugin is trying to insert a string that exceeds the limit of 255 characters; depending on the complexity of the input, maybe TEXT would be a more appropriate column-type here?
==== co_art_map ====
Field Type Null Key Default Extra
rowid int(11) NO PRI NULL auto_increment
id int(11) YES MUL NULL
art varchar(255) YES NULL
Metadata
Metadata
Assignees
Labels
No labels