Bug #10420 | INTEGER columns without DEFAULT generate bad SQL | ||
---|---|---|---|
Submitted: | 6 May 2005 17:52 | Modified: | 20 May 2005 18:46 |
Reporter: | Joel Dare | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Query Browser | Severity: | S2 (Serious) |
Version: | 1.1.9 | OS: | Windows (Windows (XP Pro)) |
Assigned to: | Vladimir Kolesnikov | CPU Architecture: | Any |
[6 May 2005 17:52]
Joel Dare
[11 May 2005 18:35]
Edam
A side effect of this bug is that you can type the text "NULL" as a default value to actually set the default value *to* NULL. The generated SQL refers to the column as: `mycol` INTEGER UNSIGNED NOT NULL DEFAULT NULL AUTO_INCREMENT, So, when fixing this bug, it would seem essential to provide a mechanism to set this collumn to NULL correctly. Saying this, it would be handy if you could do the same whilst editing results in the results area. Or is this possible already? If it isn't, it shuold be!
[12 May 2005 21:35]
Justin Patrin
I also see this problem in QB 1.1.9. It makes the table creation nearly useless as I use INTs as keys in my tables.
[20 May 2005 18:46]
Vladimir Kolesnikov
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html