From 479a42ae8ebfd7388c95cb7037b6a26a4012ff21 Mon Sep 17 00:00:00 2001 From: "Andrey.Tarashevskiy" Date: Tue, 4 Jun 2019 15:17:58 +0300 Subject: [PATCH] SQLServer metadata fix #2 --- exposed/src/main/kotlin/org/jetbrains/exposed/sql/Database.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exposed/src/main/kotlin/org/jetbrains/exposed/sql/Database.kt b/exposed/src/main/kotlin/org/jetbrains/exposed/sql/Database.kt index 877e004841..2d7ea014d4 100644 --- a/exposed/src/main/kotlin/org/jetbrains/exposed/sql/Database.kt +++ b/exposed/src/main/kotlin/org/jetbrains/exposed/sql/Database.kt @@ -66,7 +66,7 @@ class Database private constructor(val connector: () -> Connection) { private val supportsMixedId = metadata.supportsMixedCaseIdentifiers() private val supportsQuotedMixedId = metadata.supportsMixedCaseQuotedIdentifiers() val keywords = ANSI_SQL_2003_KEYWORDS + VENDORS_KEYWORDS[currentDialect.name].orEmpty() + metadata.sqlKeywords.split(',') - private val extraNameCharacters by lazy(LazyThreadSafetyMode.NONE) { metadata.extraNameCharacters!! } + private val extraNameCharacters = metadata.extraNameCharacters!! private val identifierLengthLimit = metadata.maxColumnNameLength.takeIf { it > 0 } ?: Int.MAX_VALUE val checkedIdentities = object : LinkedHashMap (100) {