@@ -1143,6 +1143,9 @@ private static object CreateGeometry(byte[] data)
1143
1143
[ InlineData ( "Int64" , "datatypes_integers" , MySqlDbType . Int64 , 20 , typeof ( long ) , "N" , 0 , 0 ) ]
1144
1144
[ InlineData ( "UInt64" , "datatypes_integers" , MySqlDbType . UInt64 , 20 , typeof ( ulong ) , "N" , 0 , 0 ) ]
1145
1145
[ InlineData ( "value" , "datatypes_json_core" , MySqlDbType . JSON , int . MaxValue , typeof ( string ) , "LN" , 0 , 0 ) ]
1146
+ #if ! MYSQL_DATA
1147
+ [ InlineData ( "value" , "datatypes_vector" , MySqlDbType . Vector , 3 , typeof ( float [ ] ) , "N" , 0 , 31 ) ]
1148
+ #endif
1146
1149
[ InlineData ( "Single" , "datatypes_reals" , MySqlDbType . Float , 12 , typeof ( float ) , "N" , 0 , 31 ) ]
1147
1150
[ InlineData ( "Double" , "datatypes_reals" , MySqlDbType . Double , 22 , typeof ( double ) , "N" , 0 , 31 ) ]
1148
1151
[ InlineData ( "SmallDecimal" , "datatypes_reals" , MySqlDbType . NewDecimal , 7 , typeof ( decimal ) , "N" , 5 , 2 ) ]
@@ -1195,6 +1198,8 @@ private void DoGetSchemaTable(string column, string table, MySqlDbType mySqlDbTy
1195
1198
{
1196
1199
if ( table == "datatypes_json_core" && ! AppConfig . SupportsJson )
1197
1200
return ;
1201
+ if ( table == "datatypes_vector" && ! AppConfig . SupportedFeatures . HasFlag ( ServerFeatures . Vector ) )
1202
+ return ;
1198
1203
1199
1204
var isAutoIncrement = flags . IndexOf ( 'A' ) != - 1 ;
1200
1205
var isKey = flags . IndexOf ( 'K' ) != - 1 ;
0 commit comments