Bug #66201 | Boolean data type is converted to tinyint when you export the data model to sql. | ||
---|---|---|---|
Submitted: | 4 Aug 2012 17:57 | Modified: | 4 Aug 2012 18:32 |
Reporter: | Jeff Lee | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Workbench: Modeling | Severity: | S2 (Serious) |
Version: | 5.2.41 | OS: | Windows (Microsoft Windows 7 Home Premium Edition (build 7600), 64-bit) |
Assigned to: | CPU Architecture: | Any | |
Tags: | WBBugReporter |
[4 Aug 2012 17:57]
Jeff Lee
[4 Aug 2012 18:32]
Valeriy Kravchuk
That's probably because: "BOOL, BOOLEAN These types are synonyms for TINYINT(1). A value of zero is considered false. Nonzero values are considered true" Read http://dev.mysql.com/doc/refman/5.5/en/integer-types.html or just look: mysql> create table tboo(c1 boolean); Query OK, 0 rows affected (0.34 sec) mysql> show create table tboo\G *************************** 1. row *************************** Table: tboo Create Table: CREATE TABLE `tboo` ( `c1` tinyint(1) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 1 row in set (0.10 sec)