Re: State of the support for the hstore ? operator - Mailing list pgsql-jdbc

From Albe Laurenz
Subject Re: State of the support for the hstore ? operator
Date
Msg-id A737B7A37273E048B164557ADEF4A58B50FE70EF@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to Re: State of the support for the hstore ? operator  (Albe Laurenz <laurenz.albe@wien.gv.at>)
List 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

pgsql-jdbc by date:

Previous
From: Albe Laurenz
Date:
Subject: Re: State of the support for the hstore ? operator
Next
From: John Harvey
Date:
Subject: Has anyone tried to make a pdf of the released documents?