| От | Thomas Kellerer |
|---|---|
| Тема | Re: State of the support for the hstore ? operator |
| Дата | |
| Msg-id | n2hlc2$j4f$1@ger.gmane.org обсуждение исходный текст |
| Ответ на | Re: State of the support for the hstore ? operator (Albe Laurenz <laurenz.albe@wien.gv.at>) |
| Ответы |
Re: State of the support for the hstore ? operator
|
| Список | pgsql-jdbc |
Albe Laurenz schrieb am 18.11.2015 um 11:35:
>> 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 looked into the source, and you can escape the question mark by doubling it.
Ah, right, thanks.
I knew there was something available - I tried \? and "?" but didn't think of ??
Thomas
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера