Bug #77449 Add 'truncateFractionalSeconds=true|false' property (contribution)
Submitted: 23 Jun 2015 11:47 Modified: 20 Aug 2015 23:53
Reporter: OCA Admin (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[23 Jun 2015 11:47] OCA Admin
Description:
This bug tracks a contribution by 권남 손 (Github user: kwon37xi) as described in http://github.com/mysql/mysql-connector-j/pull/2

How to repeat:
See description

Suggested fix:
See contribution code attached
[23 Jun 2015 11:47] OCA Admin
Contribution submitted via Github - Add 'truncateFractionalSeconds=true|false' property 
(*) Contribution by 권남 손 (Github kwon37xi, mysql-connector-j/pull/2#issuecomment-114077210): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: git_patch_37640603.txt (text/plain), 12.57 KiB.

[23 Jun 2015 14:06] MySQL Verification Team
Hello KwonNam!

Thank you for the report and contribution.

Thanks,
Umesh
[20 Aug 2015 23:53] Daniel So
Added the following entry to the Connector/J 5.1.37 changelog:

"A new connection property, truncateFractionalSeconds=true|false, has been introduced. It controls whether fractional seconds in timestamps are to be truncated on the client side or to be sent to the server side for truncation there. Thanks to Kwon Nam Son for contributing the code."
[22 Oct 2015 15:19] Daniel So
Corrected the changelog entry to:

"A new connection property, sendFractionalSeconds=true|false, has been introduced. It controls whether fractional seconds in timestamps are to be truncated on the client side or to be sent to the server side for truncation there. See the entry for the new property in Driver/Datasource Class Names, URL Syntax and Configuration Properties for Connector/J for details. Thanks to Kwon Nam Son for contributing the code."