MySQL change BOOLEAN data type to BIT #56

hisystems opened this Issue Apr 23, 2012 · 0 comments


None yet

1 participant


Currently, a boolean field is defined as BOOLEAN which is an alias for TINYINT(1). However, MySQL version 5 now supports the BIT data type. This is important because using TINYINT will return a System.Int16 data value rather than a System.Boolean. This can then cause issues with a field marked with FieldMappingAttribute and of type System.Boolean because the data type cannot be implicitly converted from System.Int16 to System.Boolean.

@hisystems hisystems was assigned Apr 23, 2012
@hisystems hisystems added a commit that closed this issue Apr 28, 2012
@hisystems Added support for MySQL change BIT data type. Closes #56.
This is primarily relevant when using DatabaseObjects.SQL.SQLCreateTable to create a table.
@hisystems hisystems closed this in 78612df Apr 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment