[pgjdbc/pgjdbc] 4f1142: fix: Change metadata getFunctions() and getProcedu...

From: Sehrope Sarkuni <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] 4f1142: fix: Change metadata getFunctions() and getProcedu...
Date: 2021-06-11 11:33:17
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/45a771-7aea51@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: 4f1142e49201c4f3794b02548bfea1cbc536caaa
https://github.com/pgjdbc/pgjdbc/commit/4f1142e49201c4f3794b02548bfea1cbc536caaa
Author: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
Date: 2021-06-11 (Fri, 11 Jun 2021)

Changed paths:
M CHANGELOG.md
M pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc4/DatabaseMetaDataTest.java

Log Message:
-----------
fix: Change metadata getFunctions() and getProcedures() to ignore search_path visibility

Previously if no schema pattern was specified then a default filter was added to getFunctions()
and getProcedures() to restrict the returned set to only those that are visible to the user
via search_path.

This removes that filter so that calling either function with a null or empty schema pattern
will return all functions or procedures.

Commit: e4a3fb543aae7fca74a3325fcc0e6a2c6613fada
https://github.com/pgjdbc/pgjdbc/commit/e4a3fb543aae7fca74a3325fcc0e6a2c6613fada
Author: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
Date: 2021-06-11 (Fri, 11 Jun 2021)

Changed paths:
M pgjdbc/src/test/java/org/postgresql/test/jdbc4/DatabaseMetaDataTest.java

Log Message:
-----------
test: Add test that getFunctions() without schema filter includes items not in search path

Commit: 7aea51322293a8eaae5e75e5ec5f7eff3eecb863
https://github.com/pgjdbc/pgjdbc/commit/7aea51322293a8eaae5e75e5ec5f7eff3eecb863
Author: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
Date: 2021-06-11 (Fri, 11 Jun 2021)

Changed paths:
M pgjdbc/src/test/java/org/postgresql/test/jdbc4/DatabaseMetaDataTest.java

Log Message:
-----------
test: Add test for verifying columns of getProcedures()

Compare: https://github.com/pgjdbc/pgjdbc/compare/45a771fccd77...7aea51322293

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2021-06-11 13:46:33 [pgjdbc/pgjdbc] 72da92: fix formatting (#2178)
Previous Message Dave Cramer 2021-06-10 18:44:27 [pgjdbc/pgjdbc]