File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ internal sealed class SchemaProvider
13
13
public SchemaProvider ( MySqlConnection connection )
14
14
{
15
15
m_connection = connection ;
16
- m_schemaCollections = new Dictionary < string , Action < DataTable > >
16
+ m_schemaCollections = new Dictionary < string , Action < DataTable > > ( StringComparer . OrdinalIgnoreCase )
17
17
{
18
18
{ "DataSourceInformation" , FillDataSourceInformation } ,
19
19
{ "MetaDataCollections" , FillMetadataCollections } ,
Original file line number Diff line number Diff line change @@ -27,10 +27,13 @@ public void GetDataSourceInformationSchemaCollection()
27
27
Assert . Equal ( m_database . Connection . ServerVersion , dataTable . Rows [ 0 ] [ "DataSourceProductVersion" ] ) ;
28
28
}
29
29
30
- [ Fact ]
31
- public void ReservedWordsSchema ( )
30
+ [ Theory ]
31
+ [ InlineData ( "ReservedWords" ) ]
32
+ [ InlineData ( "RESERVEDWORDS" ) ]
33
+ [ InlineData ( "reservedwords" ) ]
34
+ public void ReservedWordsSchema ( string schemaName )
32
35
{
33
- var table = m_database . Connection . GetSchema ( "ReservedWords" ) ;
36
+ var table = m_database . Connection . GetSchema ( schemaName ) ;
34
37
Assert . NotNull ( table ) ;
35
38
Assert . Single ( table . Columns ) ;
36
39
Assert . Equal ( "ReservedWord" , table . Columns [ 0 ] . ColumnName ) ;
You can’t perform that action at this time.
0 commit comments