[MDEV-2928] LP:740958 - 5.1-micro can not handle prepared statements with timestamps involving nanoseconds Created: 2011-03-23 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
5.1-micro can not handle prepared statements where a nanosecond-precision timestamp is sent to the server. Nanoseconds may be constructed by Java applications using the Timestamp class which operates in nanoseconds. Test case: import java.sql.Connection; class b5 { catch (Exception e) { System.out.println("Exception: "+e); e.printStackTrace(); } } |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2011-03-23 ] |
|
Re: 5.1-micro can not handle prepared statements with timestamps involving nanoseconds Exception: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value: '' for column 'test_date' at row 1 |
| Comment by Rasmus Johansson (Inactive) [ 2011-10-28 ] |
|
Launchpad bug id: 740958 |