| Bug #119271 | Connector/J fails to accept legacy value zeroDateTimeBehavior=convertToNull on multi-host URLs (failover), but works on | ||
|---|---|---|---|
| Submitted: | 30 Oct 2025 11:14 | Modified: | 14 Jan 21:41 |
| Reporter: | Wu Zhengyi (OCA) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Connector / J | Severity: | S3 (Non-critical) |
| Version: | All | OS: | Any |
| Assigned to: | Filipe Silva | CPU Architecture: | Any |
| Tags: | backward-compatibility, failover, multi-host, properties, zeroDateTimeBehavior | ||
[30 Oct 2025 11:14]
Wu Zhengyi
[30 Oct 2025 20:02]
Filipe Silva
Thank you for your interest in MySQL Connector/J and for taking the time to file this report. Verified as described.
[8 Dec 2025 6:23]
Wu Zhengyi
https://github.com/mysql/mysql-connector-j/pull/119
[9 Dec 2025 12:02]
Filipe Silva
Thank you for your contribution, but the issue is already being addressed internally.
[15 Dec 2025 18:43]
OCA Admin
Contribution submitted via Github - fix Bug #119271: Connector/J fails to accept legacy value zeroDateTimeBehavior=c (*) Contribution by Wu Zhengyi (Github wuzhengyi, mysql-connector-j/pull/119#issuecomment-3638095843): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it. ---- Replied Message ---- | From | ***@***.***> | | Date | 12/09/2025 22:54 | | To | mysql/mysql-connector-j ***@***.***> | | Cc | Zane ***@***.***>, Author ***@***.***> | | Subject | Re: [mysql/mysql-connector-j] fix Bug #119271: Connector/J fails to accept legacy value zeroDateTimeBehavior=convertToNull on multi-host URLs (failover), but works on (PR #119) | mysql-oca-bot left a comment (mysql/mysql-connector-j#119) Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle''s Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment: "I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it." Thanks — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: ***@***.***>
Contribution: git_patch_3074257288.txt (text/plain), 3.90 KiB.
[14 Jan 21:41]
Edward Gilmore
Posted by developer: Added the following note to the MySQL Connector/J 9.6.0 release notes: Using a multihost JDBC URL with the property value zeroDateTimeBehavior=convertToNull, resulted in an exception. As of this release, legacy values are normalized in both host and general properties in ConnectionUrl. Our thanks to Wu Zhengyi and the team at AliBaba for the contribution.
