Bug #7369 | ResultSet.getTimestamp throws exception for 0000-00-00 00:00:00 value | ||
---|---|---|---|
Submitted: | 16 Dec 2004 22:59 | Modified: | 16 Dec 2004 23:34 |
Reporter: | Rich Collins | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / J | Severity: | S1 (Critical) |
Version: | 3.1.5-gamma | OS: | Linux (Red Hat) |
Assigned to: | CPU Architecture: | Any |
[16 Dec 2004 22:59]
Rich Collins
[16 Dec 2004 23:34]
Mark Matthews
Ref. the documentation, http://dev.mysql.com/doc/connector/j/en/index.html#id2422964 and look at the 'zeroDateTimeBehavior' connection property (i.e. you can choose what you want to have happen when the driver runs into an all-zero date). If you want the old behavior, use 'convertToNull'. The current default behavior is required for both SQL:2003 and JDBC compliance.