Bug #75475 | Updatable ResultSet crashes on updating a table with BIT columns | ||
---|---|---|---|
Submitted: | 10 Jan 2015 2:30 | Modified: | 12 Jan 2015 18:34 |
Reporter: | dachao li | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 5.1.34 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[10 Jan 2015 2:30]
dachao li
[10 Jan 2015 2:34]
dachao li
The bug test case
Attachment: BitColumnBugReport.java (application/octet-stream, text), 1.93 KiB.
[10 Jan 2015 2:40]
dachao li
Updated test case, with assertion and exception catching
Attachment: BitColumnBugReport.java (application/octet-stream, text), 2.25 KiB.
[10 Jan 2015 3:31]
dachao li
Reproduced this bug on both Linux and MacOS. With Java 1.7
[12 Jan 2015 6:25]
MySQL Verification Team
Hello dachao li, Thank you for the report and test case. Thanks, Umesh
[12 Jan 2015 6:26]
MySQL Verification Team
// [ushastry@ushastry]~/bugs/mysql-5.6.21: java -classpath '.:/home/ushastry/bugs/mysql-connector-java-5.1.34/mysql-connector-java-5.1.34-bin.jar' BitColumnBugReport Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' WHERE `test`.`bug_report`.`id`<=>1' at line 1 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.Util.getInstance(Util.java:360) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2530) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1907) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2141) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2077) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2062) at com.mysql.jdbc.UpdatableResultSet.updateRow(UpdatableResultSet.java:2325) at BitColumnBugReport.runTest(BitColumnBugReport.java:60) at com.mysql.jdbc.util.BaseBugReport.run(BaseBugReport.java:138) at BitColumnBugReport.main(BitColumnBugReport.java:65) // [ushastry@ushastry]~/bugs/mysql-5.6.21: java -classpath '.:/home/ushastry/bugs/mysql-connector-java-5.1.34/mysql-connector-java-5.1.34-bin.jar' BitColumnBugReport com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' WHERE `test`.`bug_report`.`id`<=>1' at line 1 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.Util.getInstance(Util.java:360) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2530) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1907) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2141) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2077) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2062) at com.mysql.jdbc.UpdatableResultSet.updateRow(UpdatableResultSet.java:2325) at BitColumnBugReport.runTest(BitColumnBugReport.java:66) at com.mysql.jdbc.util.BaseBugReport.run(BaseBugReport.java:138) at BitColumnBugReport.main(BitColumnBugReport.java:78) Test finished