Skip to content

Commit e8e881a

Browse files
committed
Fix regression with partitioned tables in PostgreSQL
PostgreSQL JDBC Driver introduced separating type for partitioned table from 40.2.12 pgjdbc/pgjdbc#1708
1 parent e2c794d commit e8e881a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

framework/src/main/groovy/org/moqui/impl/entity/EntityDbMeta.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class EntityDbMeta {
107107
String schemaName = datasourceNode != null ? datasourceNode.attribute("schema-name") : null
108108
Set<String> groupEntityNames = efi.getAllEntityNamesInGroup(groupName)
109109

110-
String[] types = ["TABLE", "VIEW", "ALIAS", "SYNONYM"]
110+
String[] types = ["TABLE", "VIEW", "ALIAS", "SYNONYM", "PARTITIONED TABLE"]
111111
Set<String> existingTableNames = new HashSet<>()
112112

113113
boolean beganTx = useTxForMetaData ? efi.ecfi.transactionFacade.begin(300) : false
@@ -458,7 +458,7 @@ class EntityDbMeta {
458458
con = efi.getConnection(groupName)
459459
DatabaseMetaData dbData = con.getMetaData()
460460

461-
String[] types = ["TABLE", "VIEW", "ALIAS", "SYNONYM"]
461+
String[] types = ["TABLE", "VIEW", "ALIAS", "SYNONYM", "PARTITIONED TABLE"]
462462
tableSet1 = dbData.getTables(con.getCatalog(), ed.getSchemaName(), ed.getTableName(), types)
463463
if (tableSet1.next()) {
464464
dbResult = true

0 commit comments

Comments
 (0)