Skip to content

Commit

Permalink
Postgres ignore + replace (#298) / Postgresql enabled in insertIgnore…
Browse files Browse the repository at this point in the history
… and replace tests
  • Loading branch information
Tapac committed May 9, 2018
1 parent 2f08f86 commit 9b73399
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,8 @@ class DMLTests : DatabaseTestsBase() {
val name = varchar("foo", 10).uniqueIndex()
}

val insertIgnoreSupportedDB = TestDB.values().toList() - listOf(TestDB.SQLITE, TestDB.MYSQL, TestDB.H2_MYSQL)
val insertIgnoreSupportedDB = TestDB.values().toList() -
listOf(TestDB.SQLITE, TestDB.MYSQL, TestDB.H2_MYSQL, TestDB.POSTGRESQL)
withTables(insertIgnoreSupportedDB, idTable) {
idTable.insertIgnoreAndGetId {
it[idTable.name] = "1"
Expand Down Expand Up @@ -1460,7 +1461,7 @@ class DMLTests : DatabaseTestsBase() {
val serverID = varchar("serverID", 64).default("")
}
// Only MySQL supp
withTables(TestDB.values().toList() - TestDB.MYSQL, NewAuth) {
withTables(TestDB.values().toList() - listOf(TestDB.MYSQL, TestDB.POSTGRESQL), NewAuth) {
NewAuth.replace {
it[username] = "username"
it[session] = "session".toByteArray()
Expand Down

0 comments on commit 9b73399

Please sign in to comment.