From c955b7c8f59086f02ae2a3ecfd34a5db5b0c8e4a Mon Sep 17 00:00:00 2001 From: Jocelyne Date: Fri, 29 Sep 2023 16:07:43 +0200 Subject: [PATCH] test: fix Failing test createTableWithExplicitForeignKeyName4 The test failed because fallbackSeqName = null_id_seq. The reason tableName was null is that its declaration in the test was missing get(). --- .../jetbrains/exposed/sql/tests/shared/ddl/CreateTableTests.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/ddl/CreateTableTests.kt b/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/ddl/CreateTableTests.kt index 873259c34b..408431f957 100644 --- a/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/ddl/CreateTableTests.kt +++ b/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/ddl/CreateTableTests.kt @@ -445,7 +445,7 @@ class CreateTableTests : DatabaseTestsBase() { fun createTableWithExplicitForeignKeyName4() { val fkName = "MyForeignKey4" val parent = object : LongIdTable() { - override val tableName = "parent4" + override val tableName get() = "parent4" val uniqueId = uuid("uniqueId").clientDefault { UUID.randomUUID() }.uniqueIndex() } val child = object : LongIdTable("child4") {