Bug #36489 | Table editor Columns tab Default section has problems. | ||
---|---|---|---|
Submitted: | 3 May 2008 21:05 | Modified: | 8 Oct 2008 19:08 |
Reporter: | Justin Quick | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Workbench | Severity: | S1 (Critical) |
Version: | 5.0.21 SE | OS: | Windows (XP Pro SP2) |
Assigned to: | CPU Architecture: | Any |
[3 May 2008 21:05]
Justin Quick
[4 May 2008 5:50]
Valeriy Kravchuk
Thank you for a bug report. Verified just as described.
[13 Aug 2008 6:22]
Bruno Baketaric
At least the TIMESTAMP Stuff regarding CURRENT_TIMESTAMP ON UPDATE CURRENT TIMESTAMP is not fixed in 5.0.24 (OSS) as stated in this Bug: http://bugs.mysql.com/bug.php?id=37071 :-(
[13 Aug 2008 11:36]
Vladimir Kolesnikov
Can you please attach a screenshot of the problem?
[8 Sep 2008 19:12]
Johannes Taxacher
please double check if it's not only the column width that's obscuring the whole String (exspecially because it begins and ends with the same word (so it might look like theres only "CURRENT_TIMESTAMP" in the column)
[8 Sep 2008 19:55]
Ken Zo
I confirm that this bug is still present in 5.0.24. How to duplicate: Create model with a timestamp column. Set its default value to DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP. Export->Forward engineer. It creates a script like this: CREATE TABLE IF NOT EXISTS `mydb`.`timestamptest` ( `timestamp` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE = InnoDB; Notice how it adds "NULL". The same thing happens when you use Copy SQL to Clipboard on that table: It adds "NULL". Then import->reverse engineer the script you just created. The importer will fail, saying there is a syntax error near "NULL". Here is the error message: Line 12: SQL syntax error near 'NULL , `timestamp` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_'. Statement skipped. Also, as the original bug mentions, the table editor only shows "CURRENT_TIMESTAMP" in the default field, even when you click in that field and scroll the cursor left and right. The "ON UPDATE CURRENT_TIMESTAMP" does not appear at all in the default field when viewed in the table editor.
[8 Sep 2008 19:58]
Ken Zo
Never mind the very last paragraph of the last comment, about the ON UPDATE not appearing in the default field. Johannes Taxacher was right about that: It is appearing. But the export problem remains.
[8 Oct 2008 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".