Skip to content

Commit

Permalink
refactor: EXPOSED-708 Remove JDBC DatabaseMetaData from exposed-core …
Browse files Browse the repository at this point in the history
…module

- Undo MySQL change until custom sql extracted from dialect too
  • Loading branch information
bog-walk committed Jan 28, 2025
1 parent b4f04c2 commit 7bda001
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,6 @@ class JdbcDatabaseMetadataImpl(database: String, val metadata: DatabaseMetaData)
override fun resolveReferenceOption(refOption: String): ReferenceOption? {
val dialect = currentDialect

// MySQL/MariaDB use custom query that returns string-name values
if (dialect is MysqlDialect) {
return ReferenceOption.valueOf(refOption.replace(" ", "_"))
}

val refOptionInt = refOption.toIntOrNull() ?: return null

return when (refOptionInt) {
Expand Down

0 comments on commit 7bda001

Please sign in to comment.