Re: Alias hstore's ? to ~ so that it works with JDBC - Mailing list pgsql-hackers

From Seamus Abshere
Subject Re: Alias hstore's ? to ~ so that it works with JDBC
Date
Msg-id 511290DF.1020502@abshere.net
Whole thread Raw
In response to Re: Alias hstore's ? to ~ so that it works with JDBC  (Merlin Moncure <mmoncure@gmail.com>)
Responses Re: Alias hstore's ? to ~ so that it works with JDBC
List pgsql-hackers
merlin,

Yes, you're correct, my phrasing was bad: all I meant was that it was a 
conflict, not a bug in Postgres or hstore.

I personally don't know of any way around the conflict except changing 
JDBC or hstore, and I don't think JDBC is gonna change.

Deciding not to accommodate JDBC on the Postgres side, though, is going 
to prevent hstore from being used properly with Java or any JVM-based 
language like JRuby.

Please let me know if my assumptions are wrong.

Best,
Seamus

On 2/6/13 10:58 AM, Merlin Moncure wrote:
> On Tue, Feb 5, 2013 at 11:29 AM, Seamus Abshere <seamus@abshere.net> wrote:
>> As reported in BUG #7715 [1], hstore's use of ? as an operator conflicts
>> with JDBC's bind variables.
>>
>> I think we could just alias ? to ~ and tell JDBC users to use that instead.
>
> This is not a bug with postgres, but with java/JDBC. There are many
> operators that use '?' besides hstore and JDBC should allow for
> escaping out of its statement interpretation.
>
> merlin
>



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Identity projection
Next
From: Seamus Abshere
Date:
Subject: Re: Alias hstore's ? to ~ so that it works with JDBC