From dd78edc055207bc9c0922935438a64e1afa90e6d Mon Sep 17 00:00:00 2001 From: David E Jones Date: Fri, 23 Feb 2024 19:35:50 -0600 Subject: [PATCH] In EntityDbMeta fix issue with datasources that do not use JDBC, bulk operations like drop and create FKs have been broken with any of these in place (as they are by default) --- .../main/groovy/org/moqui/impl/entity/EntityDbMeta.groovy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/framework/src/main/groovy/org/moqui/impl/entity/EntityDbMeta.groovy b/framework/src/main/groovy/org/moqui/impl/entity/EntityDbMeta.groovy index d487e7de6..4a4158ab6 100644 --- a/framework/src/main/groovy/org/moqui/impl/entity/EntityDbMeta.groovy +++ b/framework/src/main/groovy/org/moqui/impl/entity/EntityDbMeta.groovy @@ -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"]