Skip to content

Commit 8f4b35c

Browse files
authored
Update test to allow dialect to have more keywords hardcoded
1 parent 3bbd161 commit 8f4b35c

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/NHibernate.Test/Tools/hbm2ddl/SchemaMetadataUpdaterTest/SchemaMetadataUpdaterFixture.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,8 @@ public void EnsureReservedWordsHardCodedInDialect()
9090

9191
var sf = (ISessionFactoryImplementor)configuration.BuildSessionFactory();
9292

93-
// use the dialect as configured, with no update
94-
var match = reservedDb.Intersect(sf.Dialect.Keywords).ToList();
95-
9693
// 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();
9895
if (differences.Count > 0)
9996
{
10097
Console.WriteLine("Update Dialect {0} with RegisterKeyword:", sf.Dialect.GetType().Name);
@@ -104,12 +101,7 @@ public void EnsureReservedWordsHardCodedInDialect()
104101
}
105102
}
106103

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));
113105
}
114106

115107
[Test, Explicit]

0 commit comments

Comments
 (0)