| From: | Mike Goodman <noreply(at)github(dot)com> |
|---|---|
| To: | pgsql-jdbc(at)lists(dot)postgresql(dot)org |
| Subject: | [pgjdbc/pgjdbc] 25eb32: feat: add way to distinguish base and partitioned ... |
| Date: | 2020-02-25 15:14:41 |
| Message-ID: | pgjdbc/pgjdbc/push/refs/heads/master/13a644-25eb32@github.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 25eb32c8681eaa4aaac801808b6028e9f5dfbea8
https://github.com/pgjdbc/pgjdbc/commit/25eb32c8681eaa4aaac801808b6028e9f5dfbea8
Author: Mike Goodman <MSGoodman(at)users(dot)noreply(dot)github(dot)com>
Date: 2020-02-25 (Tue, 25 Feb 2020)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
Log Message:
-----------
feat: add way to distinguish base and partitioned tables in PgDatabaseMetaData.getTables (#1708)
* feat: add way to distinguish base and partitioned tables in PgDatabaseMetaData.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 #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"})?
* test: improve database metadata table type test
| From | Date | Subject | |
|---|---|---|---|
| Next Message | crwr45 | 2020-02-25 15:15:35 | [pgjdbc/pgjdbc] 30843e: fix: allow DatabaseMetaData.getColumns to describe... |
| Previous Message | Dave Cramer | 2020-02-24 18:29:56 | [pgjdbc/pgjdbc] |