From: GregN <noreply@github.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: [pgjdbc/pgjdbc] d75591: feat: add new "escapeSyntaxCallMode" connection pr...
Date: Tue, 26 Nov 2019 04:21:53 -0800
Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/7b4543-d75591@github.com> (raw)
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: d75591385538cd704a066c4ed026f767ce3784ab
https://github.com/pgjdbc/pgjdbc/commit/d75591385538cd704a066c4ed026f767ce3784ab
Author: GregN <gregn@fast.au.fujitsu.com>
Date: 2019-11-26 (Tue, 26 Nov 2019)
Changed paths:
M README.md
M docs/documentation/head/connect.md
M pgjdbc/src/main/java/org/postgresql/PGProperty.java
M pgjdbc/src/main/java/org/postgresql/core/CachedQueryCreateAction.java
M pgjdbc/src/main/java/org/postgresql/core/JdbcCallParseInfo.java
M pgjdbc/src/main/java/org/postgresql/core/Parser.java
M pgjdbc/src/main/java/org/postgresql/core/QueryExecutor.java
M pgjdbc/src/main/java/org/postgresql/core/QueryExecutorBase.java
M pgjdbc/src/main/java/org/postgresql/ds/common/BaseDataSource.java
A pgjdbc/src/main/java/org/postgresql/jdbc/EscapeSyntaxCallMode.java
M pgjdbc/src/test/java/org/postgresql/core/ParserTest.java
A pgjdbc/src/test/java/org/postgresql/test/jdbc3/EscapeSyntaxCallModeBaseTest.java
A pgjdbc/src/test/java/org/postgresql/test/jdbc3/EscapeSyntaxCallModeCallIfNoReturnTest.java
A pgjdbc/src/test/java/org/postgresql/test/jdbc3/EscapeSyntaxCallModeCallTest.java
A pgjdbc/src/test/java/org/postgresql/test/jdbc3/EscapeSyntaxCallModeSelectTest.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc3/Jdbc3TestSuite.java
Log Message:
-----------
feat: add new "escapeSyntaxCallMode" connection property (#1560)
The "escapeSyntaxCallMode" connection property allows you to specify how the driver transforms
JDBC escape call syntax into underlying SQL, for invoking procedures and functions.
The possible values of this property are: select, callIfNoReturn, or call
In escapeSyntaxCallMode=select mode (the default), the driver always uses a SELECT statement
(allowing function invocation only).
In escapeSyntaxCallMode=callIfNoReturn mode, the driver uses a CALL statement (allowing
procedure invocation) if there is no return parameter specified, otherwise the driver uses a
SELECT statement.
In escapeSyntaxCallMode=call mode, the driver always uses a CALL statement (allowing procedure
invocation only).
Prior to the addition of this connection property, the driver always used a SELECT statement for
JDBC escape call syntax, which results in the following error when attempting to invoke a
procedure:
ERROR: xxxx is a procedure Hint: To call a procedure, use CALL
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] d75591: feat: add new "escapeSyntaxCallMode" connection pr...
In-Reply-To: <pgjdbc/pgjdbc/push/refs/heads/master/7b4543-d75591@github.com>
References: <pgjdbc/pgjdbc/push/refs/heads/master/7b4543-d75591@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