From 3bc7f5f7a4cd271b78021952f80e711d516ba2ee Mon Sep 17 00:00:00 2001 From: Kilemonn Date: Tue, 2 Jul 2024 19:35:29 +0900 Subject: [PATCH] Add comment explaining why the dialect is being set for MS SQL server only. --- .../messagequeue/queue/sql/MicrosoftSqlMultiQueueTest.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/kotlin/au/kilemon/messagequeue/queue/sql/MicrosoftSqlMultiQueueTest.kt b/src/test/kotlin/au/kilemon/messagequeue/queue/sql/MicrosoftSqlMultiQueueTest.kt index 4fbd495..e8d0095 100644 --- a/src/test/kotlin/au/kilemon/messagequeue/queue/sql/MicrosoftSqlMultiQueueTest.kt +++ b/src/test/kotlin/au/kilemon/messagequeue/queue/sql/MicrosoftSqlMultiQueueTest.kt @@ -74,6 +74,8 @@ class MicrosoftSqlMultiQueueTest: SqlMultiQueueTest() "spring.datasource.username=$username", "spring.datasource.password=$password", + // We have to explicitly set the dialect here since without it spring is unable to determine + // the dialect to use when we run all tests. "spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServerDialect" ).applyTo(configurableApplicationContext.environment) }