File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/NHibernate.Test/Tools/hbm2ddl/SchemaMetadataUpdaterTest Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -90,11 +90,8 @@ public void EnsureReservedWordsHardCodedInDialect()
90
90
91
91
var sf = ( ISessionFactoryImplementor ) configuration . BuildSessionFactory ( ) ;
92
92
93
- // use the dialect as configured, with no update
94
- var match = reservedDb . Intersect ( sf . Dialect . Keywords ) . ToList ( ) ;
95
-
96
93
// tests that nothing in metaData.GetReservedWords() is left out of the Dialect.Keywords (without a refresh).
97
- var differences = reservedDb . Except ( match ) . ToList ( ) ;
94
+ var differences = reservedDb . Except ( sf . Dialect . Keywords ) . ToList ( ) ;
98
95
if ( differences . Count > 0 )
99
96
{
100
97
Console . WriteLine ( "Update Dialect {0} with RegisterKeyword:" , sf . Dialect . GetType ( ) . Name ) ;
@@ -104,12 +101,7 @@ public void EnsureReservedWordsHardCodedInDialect()
104
101
}
105
102
}
106
103
107
- if ( sf . ConnectionProvider . Driver is OdbcDriver )
108
- {
109
- Assert . Inconclusive ( "ODBC has excess keywords reserved" ) ;
110
- }
111
-
112
- Assert . That ( match , Is . EquivalentTo ( reservedDb ) ) ;
104
+ Assert . That ( sf . Dialect . Keywords , Is . IsSupersetOf ( reservedDb ) ) ;
113
105
}
114
106
115
107
[ Test , Explicit ]
You can’t perform that action at this time.
0 commit comments