File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/NHibernate.Test/Async/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 @@ -102,11 +102,8 @@ public async Task EnsureReservedWordsHardCodedInDialectAsync()
102
102
103
103
var sf = ( ISessionFactoryImplementor ) configuration . BuildSessionFactory ( ) ;
104
104
105
- // use the dialect as configured, with no update
106
- var match = reservedDb . Intersect ( sf . Dialect . Keywords ) . ToList ( ) ;
107
-
108
105
// tests that nothing in metaData.GetReservedWords() is left out of the Dialect.Keywords (without a refresh).
109
- var differences = reservedDb . Except ( match ) . ToList ( ) ;
106
+ var differences = reservedDb . Except ( sf . Dialect . Keywords ) . ToList ( ) ;
110
107
if ( differences . Count > 0 )
111
108
{
112
109
Console . WriteLine ( "Update Dialect {0} with RegisterKeyword:" , sf . Dialect . GetType ( ) . Name ) ;
@@ -116,12 +113,7 @@ public async Task EnsureReservedWordsHardCodedInDialectAsync()
116
113
}
117
114
}
118
115
119
- if ( sf . ConnectionProvider . Driver is OdbcDriver )
120
- {
121
- Assert . Inconclusive ( "ODBC has excess keywords reserved" ) ;
122
- }
123
-
124
- Assert . That ( match , Is . EquivalentTo ( reservedDb ) ) ;
116
+ Assert . That ( sf . Dialect . Keywords , Is . IsSupersetOf ( reservedDb ) ) ;
125
117
}
126
118
127
119
[ Test , Explicit ]
You can’t perform that action at this time.
0 commit comments