Menu

#1171 (ok 3.3) use standard BOOLEAN data type

fixed
None
1
2013-06-11
2009-07-15
No

Relates to:

https://sourceforge.net/tracker/index.php?func=detail&aid=1177459&group_id=23067&atid=377411

The BOOL keyword is secondary to BOOLEAN. BOOLEAN is the primary keyword. BOOLEAN is standard SQL, BOOL is not. I know of no other DBMS that uses BOOL as a type.

Please change BOOL to BOOLEAN on any occurrence.

PS: I couldn't figure out the right category.

Discussion

  • Marc Delisle

    Marc Delisle - 2009-07-16

    I don't see in http://dev.mysql.com/doc/refman/5.1/en/numeric-type-overview.html
    that BOOL is secondary to BOOLEAN. And please, this is a bug? Come on....

    It might be seen as an improvement, though.

     
  • Marc Delisle

    Marc Delisle - 2009-07-16

    Also, this is configurable in your config.inc.php, just take the $cfg['ColumnTypes'] and $cfg['RestrictColumnTypes'] of libraries/config.default.php and change BOOL to BOOLEAN.

     
  • Marc Delisle

    Marc Delisle - 2009-07-16
    • status: open --> pending
     
  • Anonymous

    Anonymous - 2009-07-16
    • priority: 5 --> 4
    • status: pending --> open
     
  • Anonymous

    Anonymous - 2009-07-16

    As I said, BOOLEAN is standard SQL, BOOL isn't. You're right, it's just a minor improvement. You should fix this anyway because of that reason. No other DBMS uses BOOL.

     
  • Marc Delisle

    Marc Delisle - 2009-07-16
    • milestone: 899252 -->
     
  • Marc Delisle

    Marc Delisle - 2009-07-16
    • priority: 4 --> 1
    • assigned_to: nobody --> lem9
    • summary: BOOL instead of BOOLEAN --> (ok 3.3) use standard BOOLEAN data type
    • status: open --> open-accepted
     
  • Marc Delisle

    Marc Delisle - 2009-07-16

    Changed for version 3.3. Please note that there are plenty occasions where MySQL is deviant compared to standard SQL; I just hope we won't get complaints to put back BOOL...

     
  • Marc Delisle

    Marc Delisle - 2010-03-07
    • status: open-accepted --> closed-accepted
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-accepted --> fixed
     
MongoDB Logo MongoDB