Skip to content

Commit a683e25

Browse files
fixup! Fix SQLite validation failure on tables with a schema
Regen async
1 parent becdd46 commit a683e25

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/NHibernate.Test/Async/Tools/hbm2ddl/SchemaValidator/SchemaValidateTableWithSchemaFixture.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010

1111
using System;
12-
using System.Data;
1312
using NHibernate.Dialect;
1413
using NHibernate.Util;
1514
using NUnit.Framework;
@@ -31,8 +30,16 @@ protected override bool AppliesTo(Dialect.Dialect dialect)
3130
case MsSql2000Dialect _:
3231
case PostgreSQLDialect _:
3332
case SQLiteDialect _:
33+
case MsSqlCeDialect _:
3434
return true;
3535
default:
36+
// Firebird does not support schema. Its current dialect leave table name being schema prefixed,
37+
// which causes SQL parse errors. It has a "create schema" command but instead creates a new
38+
// database.
39+
// MySql does not truly support schema. Its current dialect leave table name being schema prefixed,
40+
// which is interpreted as a database name. It has a "create schema" command but instead creates
41+
// a new database.
42+
// Oracle tightly bounds schema to users.
3643
return false;
3744
}
3845
}
@@ -72,7 +79,7 @@ protected override void CreateSchema()
7279

7380
protected override void DropSchema()
7481
{
75-
// SQL-Server do not need this call, but Postgres does not accept dropping a schema carrying objects.
82+
// SQL-Server does not need this call, but Postgres does not accept dropping a schema carrying objects.
7683
base.DropSchema();
7784

7885
switch (Dialect)

0 commit comments

Comments
 (0)