com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'name' at row 1

segmentfault.com | 4 months ago
  1. 0

    【深入浅出事务】(2):Java的事务 - 极简小站 - SegmentFault

    segmentfault.com | 4 months ago
    com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'name' at row 1
  2. 0

    Town Name Length not Checked

    GitHub | 9 months ago | cjm721
    com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'name' at row 1
  3. 0

    GitHub comment 36#139349933

    GitHub | 1 year ago | paddatrapper
    com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'caseNumber' at row 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Java- com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column

    Stack Overflow | 4 months ago | bramhaag
    com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'uuid' at row 1
  6. 0
    Change the column encoding from utf8 to utf8mb4. This encoding allows storage of characters that occupy 4 bytes in UTF-8.

  1. tvrmsmith 1 times, last 4 months ago
  2. mortalman7 1 times, last 4 months ago
  3. poroszd 1 times, last 7 months ago
  4. rp 2 times, last 7 months ago
  5. MrMonkey 2 times, last 9 months ago
13 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.mysql.jdbc.MysqlDataTruncation

    Data truncation: Data too long for column 'name' at row 1

    at com.mysql.jdbc.MysqlIO.checkErrorPacket()
  2. MySQL jdbc
    PreparedStatement.executeUpdate
    1. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3885)
    2. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823)
    3. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435)
    4. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582)
    5. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2530)
    6. com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1907)
    7. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2141)
    8. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2077)
    9. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2062)
    9 frames
  3. com.mousycoder.server
    JdbcTransaction.main
    1. com.mousycoder.server.jdbc.JdbcTransaction.insertTest2(JdbcTransaction.java:73)
    2. com.mousycoder.server.jdbc.JdbcTransaction.main(JdbcTransaction.java:23)
    2 frames