5.1-micro can not handle prepared statements with timestamps involving nanoseconds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Medium
|
Sergei Golubchik |
Bug Description
5.1-micro can not handle prepared statements where a nanosecond-
Test case:
import java.sql.
import java.sql.
import java.sql.ResultSet;
import java.sql.
import java.sql.Statement;
import java.sql.
import java.sql.Timestamp;
import java.util.Calendar;
class b5 {
public static void main(String[] args) {
try {
} catch (Exception e) {
}
}
}
Related branches
Changed in maria: | |
importance: | Undecided → Medium |
status: | New → Fix Committed |
Changed in maria: | |
status: | Fix Committed → Fix Released |
The test case results in:
Exception: com.mysql. jdbc.MysqlDataT runcation: Data truncation: Incorrect datetime value: '' for column 'test_date' at row 1 jdbc.MysqlDataT runcation: Data truncation: Incorrect datetime value: '' for column 'test_date' at row 1 jdbc.MysqlIO. checkErrorPacke t(MysqlIO. java:3601) jdbc.MysqlIO. checkErrorPacke t(MysqlIO. java:3535) jdbc.MysqlIO. sendCommand( MysqlIO. java:1989) jdbc.ServerPrep aredStatement. serverExecute( ServerPreparedS tatement. java:1347) jdbc.ServerPrep aredStatement. executeInternal (ServerPrepared Statement. java:845) jdbc.PreparedSt atement. executeUpdate( PreparedStateme nt.java: 2415) jdbc.PreparedSt atement. executeUpdate( PreparedStateme nt.java: 2333) jdbc.PreparedSt atement. executeUpdate( PreparedStateme nt.java: 2318)
com.mysql.
at com.mysql.
at com.mysql.
at com.mysql.
at com.mysql.
at com.mysql.
at com.mysql.
at com.mysql.
at com.mysql.
at b5.main(b5.java:39)