Skip to content

Commit

Permalink
Handle the case where schema is switched proactively in MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeySoshin committed Feb 1, 2023
1 parent 2b421f0 commit 2f5e464
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ class JdbcDatabaseMetadataImpl(database: String, val metadata: DatabaseMetaData)
val tableName = table.tableNameWithoutScheme.inProperCase()
val transaction = TransactionManager.current()
val database = if (currentDialect is MysqlDialect) {
table.schema
table.schema.ifEmpty {
databaseName
}
} else {
databaseName
}
Expand Down

0 comments on commit 2f5e464

Please sign in to comment.