| From: | Mike Goodman <noreply(at)github(dot)com> |
|---|---|
| To: | pgsql-jdbc(at)lists(dot)postgresql(dot)org |
| Subject: | [pgjdbc/pgjdbc] 5fbe04: fix: getProcedures returns only procedures (not fu... |
| Date: | 2020-02-27 19:59:00 |
| Message-ID: | pgjdbc/pgjdbc/push/refs/heads/master/0faf9c-5fbe04@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: 5fbe04626c64b7c46a22a0cea108921305b14074
https://github.com/pgjdbc/pgjdbc/commit/5fbe04626c64b7c46a22a0cea108921305b14074
Author: Mike Goodman <MSGoodman(at)users(dot)noreply(dot)github(dot)com>
Date: 2020-02-27 (Thu, 27 Feb 2020)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc4/DatabaseMetaDataHideUnprivilegedObjectsTest.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc4/DatabaseMetaDataTest.java
Log Message:
-----------
fix: getProcedures returns only procedures (not functions) for psql11+ (#1723)
* fix: getProcedures returns only procedures (not functions) for psql11+
Currently the PGDatabaseMetaData.getProcedures() method returns both
procedures and functions. This made sense prior to PostgreSQL11, but now
actual procedures can be created instead of just functions, and pgjdbc
has an added getFunctions() method to distinguish between the two. For
only PostgreSQL version 11 and onward, this will make getFunctions()
return only functions and getProcedures() return only procedures.
I believe this closes #1340 and #1629, which both seem to essentially be
the same thing?
* only create procedure in tests for psql versions 11 and higher
* testGetProcedures now checks for functions or procedures depending on psql version
* only test 'create procedure' for psql 11+
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Vladimir Sitnikov | 2020-02-28 20:47:09 | [pgjdbc/pgjdbc] 819e00: chore: migrate build scripts to Gradle |
| Previous Message | Dave Cramer | 2020-02-27 01:22:32 | [pgjdbc/pgjdbc] 0faf9c: document copy out not closing output stream (#1721) |