Skip to content

Commit

Permalink
In EntityDbMeta fix issue with datasources that do not use JDBC, bulk…
Browse files Browse the repository at this point in the history
… operations like drop and create FKs have been broken with any of these in place (as they are by default)
  • Loading branch information
jonesde committed Feb 24, 2024
1 parent b9d8cf9 commit dd78edc
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -455,7 +455,12 @@ class EntityDbMeta {
ResultSet tableSet2 = null
boolean beganTx = useTxForMetaData ? efi.ecfi.transactionFacade.begin(5) : false
try {
con = efi.getConnection(groupName)
try {
con = efi.getConnection(groupName)
} catch (EntityException ee) {
logger.warn("Could not get connection so treating entity ${ed.fullEntityName} in group ${groupName} as table does not exist: ${ee.toString()}")
return false
}
DatabaseMetaData dbData = con.getMetaData()

String[] types = ["TABLE", "VIEW", "ALIAS", "SYNONYM", "PARTITIONED TABLE"]
Expand Down

0 comments on commit dd78edc

Please sign in to comment.