Re: State of the support for the hstore ? operator

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "'Albe Laurenz *EXTERN*'" <laurenz(dot)albe(at)wien(dot)gv(dot)at-extern>, "'Thomas Kellerer *EXTERN*'" <spam_eater(at)gmx(dot)net>, "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: State of the support for the hstore ? operator
Date: 2015-11-18 13:35:42
Message-ID: A737B7A37273E048B164557ADEF4A58B50FE70EF@ntex2010i.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Laurenz Albe wrote:
> Thomas Kellerer wrote:
>> I just stumbled upon this (using postgresql-9.4-1205.jdbc42.jar)
>>
>> Statement stmt = con.createStatement();
>> ResultSet rs = stmt.executeQuery("select count(*) from product where attributes ? 'location_id'");
>>
>> results in
>>
>> org.postgresql.util.PSQLException: ERROR: syntax error at or near "$1"

> I think that is a bug in org/postgresql/core/Parser: Even if "withParameters"
> is false, it parses question marks.
>
> I'll try to come up with a patch.

Here:
https://github.com/pgjdbc/pgjdbc/pull/427

Yours,
Laurenz Albe

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Robert Haas 2015-11-18 20:55:05 Re: Patch: Implement failover on libpq connect level.
Previous Message Albe Laurenz 2015-11-18 13:10:14 Re: State of the support for the hstore ? operator