Skip to content

Commit

Permalink
test create table with same name in different schemas fixed for sql…
Browse files Browse the repository at this point in the history
…server
  • Loading branch information
Tapac committed Mar 10, 2020
1 parent 8836c0a commit 3a11e96
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,10 @@ class CreateTableTests : DatabaseTestsBase() {
SchemaUtils.create(OneTable)
assertEquals(true, OneTable.exists())
assertEquals(false, OneOneTable.exists())
exec("CREATE SCHEMA IF NOT EXISTS ${"one".inProperCase()}")
if (currentDialectTest.supportsIfNotExists)
exec("CREATE SCHEMA IF NOT EXISTS ${"one".inProperCase()}")
else
exec("CREATE SCHEMA ${"one".inProperCase()}")
SchemaUtils.create(OneOneTable)
println("${currentDialect.name}: ${currentDialectTest.allTablesNames()}")
assertEquals(true, OneTable.exists())
Expand Down

0 comments on commit 3a11e96

Please sign in to comment.