Re: JDBC-94: "Multiple resultsets were returned by query" in query end with "; " - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: JDBC-94: "Multiple resultsets were returned by query" in query end with "; "
Date
Msg-id CADK3HHJ7a0LGY9XzEA6_8ejf5jp_QfUDK4d_kLv697Q--XH_hA@mail.gmail.com
Whole thread Raw
In response to Re: JDBC-94: "Multiple resultsets were returned by query" in query end with "; "  (Craig Ringer <craig@2ndquadrant.com>)
Responses Re: JDBC-94: "Multiple resultsets were returned by query" in query end with "; "
List pgsql-jdbc
This is likely a result of the parser getting some more work and not noticing this is an empty query. I have a personal note to look at this

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

On 7 October 2015 at 07:51, Craig Ringer <craig@2ndquadrant.com> wrote:
On 29 September 2015 at 21:56, Dang Minh Huong <kakalot49@gmail.com> wrote:
> Hi,
>
> I'm using postgresql-jdbc94 and have found that,
> string in executeQuery() end with "; " (the last character is a space)
> is considered as multiple queries and return with
> "Multiple resultsets were returned by query" error.
> I think it is not a bug, but is there any related change in jdbc94. I could
> not reproduce in jdbc93.

This is a follow-up from a Stack Overflow post, right? I'm pretty sure
I saw this but I can't find  the post now. If I'm remembering
correctly, got a link so I can cross-reference?

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

pgsql-jdbc by date:

Previous
From: Craig Ringer
Date:
Subject: Re: JDBC-94: "Multiple resultsets were returned by query" in query end with "; "
Next
From: Vladimir Sitnikov
Date:
Subject: Re: JDBC-94: "Multiple resultsets were returned by query" in query end with "; "