Skip to content

MySQL change BOOLEAN data type to BIT #56

@hisystems

Description

@hisystems

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.

http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions