Permalink
Browse files

Disable SMALLSERIAL test case on Postgres

This was introduced as part of #1582
but requires at least PostgreSQL 9.2.
  • Loading branch information...
1 parent 667ffd5 commit dbe94de685b1d2d7d33ed34b2ff7dc615510f73f @szeiger szeiger committed Dec 5, 2016
@@ -1,5 +1,6 @@
DROP TABLE IF EXISTS "test_default";
-CREATE TABLE "test_default" ("smallint_auto_inc" SMALLSERIAL,
+CREATE TABLE "test_default" (
+ -- "smallint_auto_inc" SMALLSERIAL,
"smallint_no_default" SMALLINT,
"smallint_default_zero" SMALLINT DEFAULT 0,
"smallint_default_pos" SMALLINT DEFAULT 1,
@@ -126,13 +126,13 @@ val SimpleA = CustomTyping.SimpleA
| MTable.getTables(Some(""), Some("public"), None, None).map { tables =>
| def optionsOfColumn(c: slick.lifted.Rep[_]) =
| c.toNode.asInstanceOf[Select].field.asInstanceOf[FieldSymbol].options.toList
- | val smallserialOptions = optionsOfColumn(TestDefault.baseTableRow.smallintAutoInc)
+ | //val smallserialOptions = optionsOfColumn(TestDefault.baseTableRow.smallintAutoInc)
| val serialOptions = optionsOfColumn(TestDefault.baseTableRow.intAutoInc)
| val bigserialOptions = optionsOfColumn(TestDefault.baseTableRow.bigintAutoInc)
| val char1EmptyOptions = optionsOfColumn(TestDefault.baseTableRow.char1DefaultEmpty)
| val char1ValidOptions = optionsOfColumn(TestDefault.baseTableRow.char1DefaultValid)
| val char1InvalidOptions = optionsOfColumn(TestDefault.baseTableRow.char1DefaultInvalid)
- | assertTrue("smallint_auto_inc should be AutoInc", smallserialOptions.exists(option => (option equals TestDefault.baseTableRow.O.AutoInc)))
+ | //assertTrue("smallint_auto_inc should be AutoInc", smallserialOptions.exists(option => (option equals TestDefault.baseTableRow.O.AutoInc)))
| assertTrue("int_auto_inc should be AutoInc", serialOptions.exists(option => (option equals TestDefault.baseTableRow.O.AutoInc)))
| assertTrue("bigint_auto_inc should be AutoInc", bigserialOptions.exists(option => (option equals TestDefault.baseTableRow.O.AutoInc)))
| assertTrue("default value of char1_default_empty should be ' '", char1EmptyOptions.exists(option => (option equals TestDefault.baseTableRow.O.Default(Some(' ')))))

0 comments on commit dbe94de

Please sign in to comment.