[pgjdbc/pgjdbc] ed7467: fix: allow OUT parameter registration when using C...

From: GregN <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] ed7467: fix: allow OUT parameter registration when using C...
Date: 2019-11-26 12:22:37
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/d75591-ed7467@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: ed74670fae932935a156eccfb4b1ff16758f5693
https://github.com/pgjdbc/pgjdbc/commit/ed74670fae932935a156eccfb4b1ff16758f5693
Author: GregN <gregn(at)fast(dot)au(dot)fujitsu(dot)com>
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

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dongming 2019-11-26 12:55:08 [pgjdbc/pgjdbc] 9a193d: Adjust the default port to 5432. (#1619)
Previous Message GregN 2019-11-26 12:21:53 [pgjdbc/pgjdbc] d75591: feat: add new "escapeSyntaxCallMode" connection pr...