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
1313 public SchemaProvider ( MySqlConnection connection )
1414 {
1515 m_connection = connection ;
16- m_schemaCollections = new Dictionary < string , Action < DataTable > >
16+ m_schemaCollections = new Dictionary < string , Action < DataTable > > ( StringComparer . OrdinalIgnoreCase )
1717 {
1818 { "DataSourceInformation" , FillDataSourceInformation } ,
1919 { "MetaDataCollections" , FillMetadataCollections } ,
Original file line number Diff line number Diff line change @@ -27,10 +27,13 @@ public void GetDataSourceInformationSchemaCollection()
2727 Assert . Equal ( m_database . Connection . ServerVersion , dataTable . Rows [ 0 ] [ "DataSourceProductVersion" ] ) ;
2828 }
2929
30- [ Fact ]
31- public void ReservedWordsSchema ( )
30+ [ Theory ]
31+ [ InlineData ( "ReservedWords" ) ]
32+ [ InlineData ( "RESERVEDWORDS" ) ]
33+ [ InlineData ( "reservedwords" ) ]
34+ public void ReservedWordsSchema ( string schemaName )
3235 {
33- var table = m_database . Connection . GetSchema ( "ReservedWords" ) ;
36+ var table = m_database . Connection . GetSchema ( schemaName ) ;
3437 Assert . NotNull ( table ) ;
3538 Assert . Single ( table . Columns ) ;
3639 Assert . Equal ( "ReservedWord" , table . Columns [ 0 ] . ColumnName ) ;
You can’t perform that action at this time.
0 commit comments