@@ -226,6 +226,13 @@ public void QueryTinyIntSbyte(string column, string dataTypeName, object[] expec
226
226
}
227
227
}
228
228
229
+ [ Theory ( ) ]
230
+ [ InlineData ( "TinyInt1U" , "TINYINT" , new object [ ] { null , ( byte ) 0 , ( byte ) 1 , ( byte ) 0 , ( byte ) 1 , ( byte ) 255 , ( byte ) 123 } ) ]
231
+ public void QueryTinyInt1Unsigned ( string column , string dataTypeName , object [ ] expected )
232
+ {
233
+ DoQuery ( "bools" , column , dataTypeName , expected , reader => reader . GetByte ( 0 ) , baselineCoercedNullValue : default ( byte ) ) ;
234
+ }
235
+
229
236
[ Theory ]
230
237
[ InlineData ( "SByte" , "TINYINT" , new object [ ] { null , default ( sbyte ) , sbyte . MinValue , sbyte . MaxValue , ( sbyte ) 123 } ) ]
231
238
public void QuerySByte ( string column , string dataTypeName , object [ ] expected )
@@ -983,6 +990,7 @@ public void Geometry()
983
990
[ InlineData ( "Boolean" , "datatypes_bools" , MySqlDbType . Bool , 1 , typeof ( bool ) , "N" , 0 , 0 ) ]
984
991
[ InlineData ( "TinyInt1" , "datatypes_bools" , MySqlDbType . Bool , 1 , typeof ( bool ) , "N" , 0 , 0 ) ]
985
992
#endif
993
+ [ InlineData ( "TinyInt1U" , "datatypes_bools" , MySqlDbType . UByte , 1 , typeof ( byte ) , "N" , 0 , 0 ) ]
986
994
[ InlineData ( "size" , "datatypes_enums" , MySqlDbType . Enum , 7 , typeof ( string ) , "N" , 0 , 0 ) ]
987
995
[ InlineData ( "color" , "datatypes_enums" , MySqlDbType . Enum , 6 , typeof ( string ) , "" , 0 , 0 ) ]
988
996
[ InlineData ( "char38" , "datatypes_guids" , MySqlDbType . String , 38 , typeof ( string ) , "N" , 0 , 0 ) ]
@@ -1107,6 +1115,7 @@ private void DoGetSchemaTable(string column, string table, MySqlDbType mySqlDbTy
1107
1115
[ InlineData ( "rowid" , "datatypes_bools" , MySqlDbType . Int32 , "INT" , 11 , typeof ( int ) , "AK" , - 1 , 0 ) ]
1108
1116
[ InlineData ( "Boolean" , "datatypes_bools" , MySqlDbType . Bool , "BOOL" , 1 , typeof ( bool ) , "N" , - 1 , 0 ) ]
1109
1117
[ InlineData ( "TinyInt1" , "datatypes_bools" , MySqlDbType . Bool , "BOOL" , 1 , typeof ( bool ) , "N" , - 1 , 0 ) ]
1118
+ [ InlineData ( "TinyInt1U" , "datatypes_bools" , MySqlDbType . UByte , "TINYINT" , 1 , typeof ( byte ) , "N" , - 1 , 0 ) ]
1110
1119
[ InlineData ( "size" , "datatypes_enums" , MySqlDbType . Enum , "ENUM" , 7 , typeof ( string ) , "N" , - 1 , 0 ) ]
1111
1120
[ InlineData ( "color" , "datatypes_enums" , MySqlDbType . Enum , "ENUM" , 6 , typeof ( string ) , "" , - 1 , 0 ) ]
1112
1121
[ InlineData ( "char38" , "datatypes_guids" , MySqlDbType . String , "CHAR(38)" , 38 , typeof ( string ) , "N" , - 1 , 0 ) ]
0 commit comments