From 3c93a4bd688921d81b32139dbbb6b863d9f826f7 Mon Sep 17 00:00:00 2001 From: Johannes Rohde Date: Thu, 21 Sep 2023 14:21:21 +0200 Subject: [PATCH] Failing test for unsigned regression. --- .../sql/tests/shared/types/UnsignedColumnTypeTests.kt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/types/UnsignedColumnTypeTests.kt b/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/types/UnsignedColumnTypeTests.kt index a7b79c38dc..4acc364936 100644 --- a/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/types/UnsignedColumnTypeTests.kt +++ b/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/types/UnsignedColumnTypeTests.kt @@ -21,6 +21,10 @@ class UnsignedColumnTypeTests : DatabaseTestsBase() { val unsignedShort = ushort("ushort") } + object UShortTable2 : Table("ushort_table2") { + val unsignedShort = ushort("ushort") + } + object UIntTable : Table("uint_table") { val unsignedInt = uinteger("uint") } @@ -148,6 +152,11 @@ class UnsignedColumnTypeTests : DatabaseTestsBase() { } } + @Test + fun testCheckConstraintsCanCoexist() { + withTables(UShortTable, UShortTable2) {} + } + @Test fun testPreviousUShortColumnTypeWorksWithNewIntType() { withDb(excludeSettings = listOf(TestDB.MYSQL, TestDB.MARIADB)) { testDb ->