From e8e881a829a447b0e6f6ab544d60f18313e09e64 Mon Sep 17 00:00:00 2001 From: Yao Chunlin Date: Tue, 23 May 2023 11:37:03 +0800 Subject: [PATCH] Fix regression with partitioned tables in PostgreSQL PostgreSQL JDBC Driver introduced separating type for partitioned table from 40.2.12 pgjdbc/pgjdbc#1708 --- .../src/main/groovy/org/moqui/impl/entity/EntityDbMeta.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 da1e61d50..d487e7de6 100644 --- a/framework/src/main/groovy/org/moqui/impl/entity/EntityDbMeta.groovy +++ b/framework/src/main/groovy/org/moqui/impl/entity/EntityDbMeta.groovy @@ -107,7 +107,7 @@ class EntityDbMeta { String schemaName = datasourceNode != null ? datasourceNode.attribute("schema-name") : null Set groupEntityNames = efi.getAllEntityNamesInGroup(groupName) - String[] types = ["TABLE", "VIEW", "ALIAS", "SYNONYM"] + String[] types = ["TABLE", "VIEW", "ALIAS", "SYNONYM", "PARTITIONED TABLE"] Set existingTableNames = new HashSet<>() boolean beganTx = useTxForMetaData ? efi.ecfi.transactionFacade.begin(300) : false @@ -458,7 +458,7 @@ class EntityDbMeta { con = efi.getConnection(groupName) DatabaseMetaData dbData = con.getMetaData() - String[] types = ["TABLE", "VIEW", "ALIAS", "SYNONYM"] + String[] types = ["TABLE", "VIEW", "ALIAS", "SYNONYM", "PARTITIONED TABLE"] tableSet1 = dbData.getTables(con.getCatalog(), ed.getSchemaName(), ed.getTableName(), types) if (tableSet1.next()) { dbResult = true