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

segmentfault.com | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    segmentfault.com | 9 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 | 1 year ago | cjm721
    com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'name' at row 1
  3. 0

    GitHub comment 36#139349933

    GitHub | 2 years 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 | 8 months ago | bramhaag
    com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'uuid' at row 1
  6. 0

    insert null for DATETIME Field through PrepareStatement using jdbc

    Stack Overflow | 2 years ago | Rajesh Hatwar
    com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value: 'NULL' for column 'dob' at row 1

  1. Axelo 1 times, last 1 month ago
  2. tvrmsmith 1 times, last 9 months ago
  3. mortalman7 1 times, last 9 months ago
  4. poroszd 1 times, last 1 year ago
  5. rp 2 times, last 1 year ago
1 more registered users
14 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
    JdbcNoTransaction.main
    1. com.mousycoder.server.jdbc.JdbcNoTransaction.insertTest2(JdbcNoTransaction.java:61)
    2. com.mousycoder.server.jdbc.JdbcNoTransaction.main(JdbcNoTransaction.java:22)
    2 frames