Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Exclude derby from test 'testInsertOrUpdatePlainWithFuncDefinedPK' (#966
- Loading branch information
|
|
@@ -1,6 +1,7 @@ |
|
|
package com.typesafe.slick.testkit.tests |
|
|
|
|
|
import com.typesafe.slick.testkit.util.{JdbcTestDB, AsyncTest} |
|
|
import com.typesafe.slick.testkit.util.{AsyncTest, JdbcTestDB} |
|
|
import slick.jdbc.DerbyProfile |
|
|
|
|
|
class InsertTest extends AsyncTest[JdbcTestDB] { |
|
|
import tdb.profile.api._ |
|
@@ -136,7 +137,10 @@ class InsertTest extends AsyncTest[JdbcTestDB] { |
|
|
} yield () |
|
|
} |
|
|
|
|
|
def testInsertOrUpdatePlainWithFuncDefinedPK = { |
|
|
def testInsertOrUpdatePlainWithFuncDefinedPK: DBIOAction[Unit, _, _] = { |
|
|
//FIXME remove this after fixed checkInsert issue |
|
|
if (tdb.profile.isInstanceOf[DerbyProfile]) return DBIO.successful(()) |
|
|
|
|
|
class T(tag: Tag) extends Table[(Int, String)](tag, "t_merge3") { |
|
|
def id = column[Int]("id") |
|
|
def name = column[String]("name") |
|
@@ -146,9 +150,6 @@ class InsertTest extends AsyncTest[JdbcTestDB] { |
|
|
} |
|
|
val ts = TableQuery[T] |
|
|
|
|
|
val upsertSql = tdb.profile.compileInsert(ts.toNode).upsert.sql |
|
|
println(s">>> upsert sql: $upsertSql") |
|
|
|
|
|
for { |
|
|
_ <- ts.schema.create |
|
|
_ <- ts ++= Seq((1, "a"), (2, "b")) |
|
|