Skip to content

Commit

Permalink
Fix regression with partitioned tables in PostgreSQL
Browse files Browse the repository at this point in the history
PostgreSQL JDBC Driver introduced separating type for partitioned table from  40.2.12 pgjdbc/pgjdbc#1708
  • Loading branch information
chunlinyao committed May 23, 2023
1 parent e2c794d commit e8e881a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -107,7 +107,7 @@ class EntityDbMeta {
String schemaName = datasourceNode != null ? datasourceNode.attribute("schema-name") : null
Set<String> groupEntityNames = efi.getAllEntityNamesInGroup(groupName)

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

boolean beganTx = useTxForMetaData ? efi.ecfi.transactionFacade.begin(300) : false
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e8e881a

Please sign in to comment.