From: | Seamus Abshere <seamus(at)abshere(dot)net> |
---|---|
To: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Alias hstore's ? to ~ so that it works with JDBC |
Date: | 2013-02-06 17:20:31 |
Message-ID: | 511290DF.1020502@abshere.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)abshere(dot)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
>
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2013-02-06 17:25:34 | Re: sql_drop Event Trigger |
Previous Message | Phil Sorber | 2013-02-06 17:14:01 | Re: [PATCH] pg_isready (was: [WIP] pg_ping utility) |