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 ->