Bug #78153 | Workbench SQL Editor DATETIME Millisecond Precision Inconsistent. | ||
---|---|---|---|
Submitted: | 20 Aug 2015 14:13 | Modified: | 17 May 2016 23:10 |
Reporter: | Ben Ernest-Jones | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench: SQL Editor | Severity: | S3 (Non-critical) |
Version: | 6.3.4 | OS: | MacOS |
Assigned to: | CPU Architecture: | Any | |
Tags: | DATETIME milliseconds |
[20 Aug 2015 14:13]
Ben Ernest-Jones
[20 Aug 2015 15:29]
MySQL Verification Team
2 WB instances showing the bug
Attachment: sql_editor_and_datetime(x).png (image/png, text), 339.21 KiB.
[20 Aug 2015 15:31]
MySQL Verification Team
Thank you for the bug report.
[11 Feb 2016 15:46]
Irfan Ahmad
This issue is still there! Creating table script with DateTime(3) works for me.
[11 Feb 2016 16:31]
Irfan Ahmad
But it still shows DateTime only if you ALTER table through designer but if you get script of table it's showing DateTime(3).
[17 May 2016 23:10]
Philip Olson
Posted by developer: Fixed as of the upcoming MySQL Workbench 6.3.7 release, and here's the changelog entry: Adding a DATETIME with precision (such as DATETIME(3)) from the Table Editor would eventually get reverted to DATETIME (without precision). Thank you for the bug report.
[7 Sep 2018 17:23]
Kevin McLaughlin
This appears to be broken again in 8.0.
[7 Sep 2018 17:38]
Kevin McLaughlin
Confirmed rolling back to 6.3.10 and it possible to create DATETIME(3) columns again. OS X.
[19 Sep 2018 22:01]
Матвей Алексеев
Are you seriously? For 3 years not to fix?
[24 Sep 2018 7:50]
Mike Lischke
Please do not add any content to closed bugs. They are processed and will not be checked anymore. Instead open a new bug report. The issue you see is not a regression. The original bug was indeed fixed, but only for older server versions (< 5.6). You can fix the issue you see by yourself pretty easily. Locate the file mysql_rdbms_info.xml in your Workbench installation (Mac users: look in the application bundle). That file contains an entry "com.mysql.rdbms.mysql.datatype.datetime_f", which has a sub element named "numericPrecision". This should be 0 for DATETIME. Change that, save + restart Workbench. The DATETIME field should now behave as intended, also for newer MySQL server versions.
[24 Sep 2018 15:27]
Mike Lischke
This fix will be publicly available in a forthcoming Workbench release.