[CONJ-388] handle timestamp '0000-00-00 00:00:00' getString() Created: 2016-11-11  Updated: 2016-12-14  Resolved: 2016-12-12

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: None
Fix Version/s: 1.5.6

Type: Bug Priority: Minor
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

driver handle timestamps Resultset.getString() as Resultset.getDate().toString().
That's great but for specific value '0000-00-00 00:00:00' that is considered null for getDate(), since javax.sql.Date begin at 01-01-1970.

getString on a '0000-00-00 00:00:00' value must return '0000-00-00 00:00:00' value.


Generated at Thu Feb 08 03:15:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.