forked from pgjdbc/pgjdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add way to distinguish base and partitioned tables in PgDatabas…
…eMetaData.getTables There is currently no way to distinguish between base tables and partitioned tables in the response from PgDatabadeMetaData.getTables. Fix this by adding PARTITIONED TABLE to the tableTypeClauses map and thus the TABLE_TYPE field in the query in getTables. Also update a test (testPartitionedTables) that was using TABLE_TYPE of TABLE to grab partitioned tables. This should close pgjdbc#1590. However, perhaps this could be considered a breaking change for anyone using getTables and expecting partitioned tables to show up for .getTables(s, s1, s2, new String[]{"TABLE"})?
- Loading branch information
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters