Bug #9666 Can't use 'DEFAULT FALSE' for column of type bool
Submitted: 6 Apr 2005 3:49 Modified: 12 May 2005 3:07
Reporter: Jim Winstead Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.1.10 OS:
Assigned to: Antony Curtis CPU Architecture:Any

[6 Apr 2005 3:49] Jim Winstead
Description:
It's not possible to create a column of type 'bool' and specify the default is false. A numeric default works fine.

How to repeat:
mysql> create table t1 ( b bool not null default false );
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'false )' at line 1
[21 Apr 2005 15:28] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/24203
[4 May 2005 14:41] Antony Curtis
Approved by Sergei, Apr 27.
[7 May 2005 22:44] Antony Curtis
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
[12 May 2005 3:07] Paul DuBois
Noted in 4.1.12 changelog.