Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL change BOOLEAN data type to BIT #56

Closed
hisystems opened this issue Apr 23, 2012 · 0 comments
Closed

MySQL change BOOLEAN data type to BIT #56

hisystems opened this issue Apr 23, 2012 · 0 comments
Assignees

Comments

@hisystems
Copy link
Owner

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

@ghost ghost assigned hisystems Apr 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant