Re: Alias hstore's ? to ~ so that it works with JDBC
От | Seamus Abshere |
---|---|
Тема | Re: Alias hstore's ? to ~ so that it works with JDBC |
Дата | |
Msg-id | 511290DF.1020502@abshere.net обсуждение исходный текст |
Ответ на | Re: Alias hstore's ? to ~ so that it works with JDBC (Merlin Moncure <mmoncure@gmail.com>) |
Ответы |
Re: Alias hstore's ? to ~ so that it works with JDBC
|
Список | 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 по дате отправления: