From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: JDBC and the hstore ? operator - no longer working with build 1211
Date: Mon, 31 Oct 2016 22:07:01 +0100
Message-ID: <nv8bpg$ivu$1@blaine.gmane.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
The support for using the hstore ? operator without a PreparedStatement worked with build 1208, but is broken (again) with build 1211
The following works with build 1208
Connection conn = DriverManager.getConnection(...);
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("select * from some_table where hstore_column ? 'foo');
with build 1211 it throws an exception with the message:
org.postgresql.util.PSQLException: ERROR: syntax error at or near "$1"
Was this intended to work in build 1208 or was that just by accident?
Thomas
--
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: spam_eater@gmx.net
Subject: Re: JDBC and the hstore ? operator - no longer working with build 1211
In-Reply-To: <nv8bpg$ivu$1@blaine.gmane.org>
References: <nv8bpg$ivu$1@blaine.gmane.org>
* 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