[pgjdbc/pgjdbc] ed7467: fix: allow OUT parameter registration when using C...
GregN <[email protected]> Tue, 26 Nov 2019 04:22:37 -0800
| Newsgroups | gmane.comp.db.postgresql.jdbc |
|---|---|
| Message-ID | <pgjdbc/pgjdbc/push/refs/heads/master/[email protected]> |
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: ed74670fae932935a156eccfb4b1ff16758f5693
https://github.com/pgjdbc/pgjdbc/commit/ed74670fae932935a156eccfb4b1ff16758f5693
Author: GregN <[email protected]>
Date: 2019-11-26 (Tue, 26 Nov 2019)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/core/Parser.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc3/Jdbc3CallableStatementTest.java
Log Message:
-----------
fix: allow OUT parameter registration when using CallableStatement native CALL (#1561)
Currently, using CallableStatement, the PGJDBC driver will allow invocation of procedures using
the native "call myproc(...)" syntax, provided the procedure only has IN parameters or no
parameters.
However, if the procedure has any INOUT parameters, then an attempt to invoke the
CallableStatement's registerOutParameter() method, which is required in order to register the OUT
part of the INOUT parameter, will fail with the following error:
This statement does not declare an OUT parameter. Use { ?= call ... } to declare one.
This fixes issue: https://github.com/pgjdbc/pgjdbc/issues/1545