[pgjdbc/pgjdbc] 5fbe04: fix: getProcedures returns only procedures(not fu...
[pgjdbc/pgjdbc] 5fbe04: fix: getProcedures returns only procedures(not fu...
От:
Mike Goodman <noreply@github.com>
Дата:
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 5fbe04626c64b7c46a22a0cea108921305b14074
https://github.com/pgjdbc/pgjdbc/commit/5fbe04626c64b7c46a22a0cea108921305b14074
Author: Mike Goodman
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+