Bug #14280 | Error 1067 : Invalid default value on create table with auto_inrement field | ||
---|---|---|---|
Submitted: | 25 Oct 2005 3:06 | Modified: | 11 Jan 2006 9:21 |
Reporter: | Robert Kroes | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Administrator | Severity: | S3 (Non-critical) |
Version: | 1.1.4 | OS: | Windows (Windows XP) |
Assigned to: | Mike Lischke | CPU Architecture: | Any |
[25 Oct 2005 3:06]
Robert Kroes
[25 Oct 2005 12:03]
Valeriy Kravchuk
1.1.3 worked OK for me. It has generated and successfully executed the following statement: CREATE TABLE `test`.`test` ( `idtest` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY(`idtest`) ) ENGINE = InnoDB; when performing the described actions.
[25 Oct 2005 12:12]
Valeriy Kravchuk
And in 1.1.4 it generates: CREATE TABLE `test`.`ttt` ( `idttt` INTEGER UNSIGNED NOT NULL DEFAULT 0 AUTO_INCREMENT, PRIMARY KEY(`idttt`) ) ENGINE = InnoDB; that gives the obvious error message upon execution. So, it is a bug, introduced in version 1.1.4.
[28 Oct 2005 9:44]
Valeriy Kravchuk
The same bug is in Query Browser 1.1.17. Bug #14419 was marked as a duplicate of this one. They both should be fixed by the same change in code.
[15 Nov 2005 16:01]
Marc DVer
The same problem exists in 1.1.5.
[11 Jan 2006 9:21]
Mike Lischke
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