Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c1Jo4-0006WC-7z for pgsql-jdbc@arkaria.postgresql.org; Mon, 31 Oct 2016 21:07:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c1Jo3-0006mU-Fi for pgsql-jdbc@arkaria.postgresql.org; Mon, 31 Oct 2016 21:07:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c1Jo3-0006mM-3W for pgsql-jdbc@postgresql.org; Mon, 31 Oct 2016 21:07:47 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1c1Jo0-0001iA-Bk for pgsql-jdbc@postgresql.org; Mon, 31 Oct 2016 21:07:45 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1c1Jni-0000DF-KZ for pgsql-jdbc@postgresql.org; Mon, 31 Oct 2016 22:07:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: JDBC and the hstore ? operator - no longer working with build 1211 Date: Mon, 31 Oct 2016 22:07:01 +0100 Lines: 18 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 X-Mozilla-News-Host: news://news.gmane.org:119 X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) X-Pg-Spam-Score: 0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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