From: Robert Zenz <robert.zenz@sibvisions.com>
To: pgsql-jdbc@postgresql.org
Subject: [pgjdbc/pgjdbc] 2958cc: fix: function calls without parameters do not requ...
Date: Sun, 16 Apr 2017 09:10:47 -0700
Message-ID: <58f397879ce71_b123faac2bd1c24234016@hookshot-fe3-cp1-prd.iad.github.net.mail> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 2958cc22a6a00609bfbb6eb17d4e401dfe433123
https://github.com/pgjdbc/pgjdbc/commit/2958cc22a6a00609bfbb6eb17d4e401dfe433123
Author: Robert Zenz <robert.zenz@sibvisions.com>
Date: 2017-04-16 (Sun, 16 Apr 2017)
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: function calls without parameters do not require parentheses
According to the JDBC documentation, the parentheses surrounding
the parameters, of a function call, are optional if there are no
parameters. However, Parser required the parentheses to be present at
all times. The new behavior is that the Parser checks whether there are
parentheses, and if not simply adds them. Also, tests have been added
for both cases, function calls to functions with no parameters with and
without parentheses.
This allows to execute function calls like this:
{?= call somefunction }
Which is line with the JDBC documentation.
The tracking bug is #767.
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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: robert.zenz@sibvisions.com
Subject: Re: [pgjdbc/pgjdbc] 2958cc: fix: function calls without parameters do not requ...
In-Reply-To: <58f397879ce71_b123faac2bd1c24234016@hookshot-fe3-cp1-prd.iad.github.net.mail>
References: <58f397879ce71_b123faac2bd1c24234016@hookshot-fe3-cp1-prd.iad.github.net.mail>
* 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