Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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+
- Loading branch information
Showing
3 changed files
with
75 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters