[pgjdbc/pgjdbc] 25eb32: feat: add way to distinguish base andpartitioned ...

Поиск
Список
Период
Сортировка
Искать

[pgjdbc/pgjdbc] 25eb32: feat: add way to distinguish base andpartitioned ...

От:
Mike Goodman <noreply@github.com>
Дата:
  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: 25eb32c8681eaa4aaac801808b6028e9f5dfbea8
      https://github.com/pgjdbc/pgjdbc/commit/25eb32c8681eaa4aaac801808b6028e9f5dfbea8
  Author: Mike Goodman 
  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




FAQ