Bug #11031 | Adding new table through designer throws 1064 MySQL error | ||
---|---|---|---|
Submitted: | 2 Jun 2005 11:53 | Modified: | 3 Jun 2005 14:58 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Query Browser | Severity: | S1 (Critical) |
Version: | 1.1.9 | OS: | Windows (Windows XP SP1) |
Assigned to: | CPU Architecture: | Any |
[2 Jun 2005 11:53]
[ name withheld ]
[2 Jun 2005 13:39]
Lee Saferite
This problem is present when you add any integer column to a table. The designer will always add a DEFAULT statement even when you have nothing in the default field on the designer page. When nothing is put into the form field, then the table designer generates a DEFAULT statement without a following value, which is invalid SQL. I'm not sure if this is a problem with the validation of the form (the DEFAULT value is mandatory) or a problem with the SQL generation. I usually just remove the spurious DEFAULT statements by hand and it works just fine.
[2 Jun 2005 14:58]
Jorge del Conde
Thanks for your bug report.
[2 Jun 2005 14:59]
Jorge del Conde
pic showing the bug
Attachment: Image1.png (image/x-png, text), 12.33 KiB.
[2 Jun 2005 14:59]
Jorge del Conde
added a screenshot showing the bug
[3 Jun 2005 14:58]
Michael G. Zinner
Thank you for your bug report. This issue has already been fixed in the latest released version of that product, which you can download at http://www.mysql.com/downloads/