From: GregN <noreply@github.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: [pgjdbc/pgjdbc] ed7467: fix: allow OUT parameter registration when using C...
Date: Tue, 26 Nov 2019 04:22:37 -0800
Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/d75591-ed7467@github.com> (raw)
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: ed74670fae932935a156eccfb4b1ff16758f5693
https://github.com/pgjdbc/pgjdbc/commit/ed74670fae932935a156eccfb4b1ff16758f5693
Author: GregN <gregn@fast.au.fujitsu.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: noreply@github.com
Subject: Re: [pgjdbc/pgjdbc] ed7467: fix: allow OUT parameter registration when using C...
In-Reply-To: <pgjdbc/pgjdbc/push/refs/heads/master/d75591-ed7467@github.com>
References: <pgjdbc/pgjdbc/push/refs/heads/master/d75591-ed7467@github.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox