Bug #67381 data type TinyInt(1)

Submitted: 25 Oct 2012 20:36 Modified: 29 Jan 2013 23:33
Reporter: Baskin Tapkan Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Connector / NET Severity:S3 (Non-critical)
Version:6.5.4 OS:Windows (Windows 7 x64bit)
Assigned to: Fernando Gonzalez.Sanchez CPU Architecture:Any
Tags: MySql.Data, MySql.Data.Entity

[25 Oct 2012 20:36] Baskin Tapkan
Description:
TinyInt(1) data type for a column is translated as a Boolean in .NET POCO class and ADO.NET Entity framework

How to repeat:
1) Create a table with a TINYINT(1) column type
2) Using the MySQL.Data and MySQL.Data.Entity NuGet packages, create a ADO.NET Entity Data model
3) Observe that the data type for the TINYINT(1) is now shown as "Boolean"
[29 Jan 2013 23:33] Fernando Gonzalez.Sanchez
Thanks for your report,

This is not actually a bug, you can add to your connection string 
"Treat Tiny As Boolean=false;"

and now the tinyint will be interpreted like a type sbyte in C#.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.