Re: Problems with question marks in operators (JDBC, ECPG, ...)

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Problems with question marks in operators (JDBC, ECPG, ...)
Дата
Msg-id 555669F2.6040406@dunslane.net
обсуждение исходный текст
Ответ на Re: Problems with question marks in operators (JDBC, ECPG, ...)  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 05/15/2015 04:35 PM, Robert Haas wrote:
> I guess JDBC has the same problem as Perl and JavaScript here: ?
> signals a bind variable.  The next question is, why isn't there some
> escaping mechanism for that, like writing ?? or \? or something?


FTR, Perl's DBD::Pg lets you do this:
   $dbh->{pg_placeholder_dollaronly} = 1; # disable ? placeholders   $sth = $dbh->prepare(q{SELECT * FROM mytable WHERE
lseg1?# lseg2   AND name = $1});   $sth->execute('segname');
 

cheers

andrew





В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: KNN-GiST with recheck
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Final Patch for GROUPING SETS