Re: standard_conforming_strings and pg_escape_string()

Поиск
Список
Период
Сортировка
От Conrad Lender
Тема Re: standard_conforming_strings and pg_escape_string()
Дата
Msg-id 49F20555.2070505@gmail.com
обсуждение исходный текст
Ответ на Re: standard_conforming_strings and pg_escape_string()  ("Daniel Verite" <daniel@manitou-mail.org>)
Список pgsql-general
On 24/04/09 14:49, Daniel Verite wrote:
> It works for me:
>
> $ php -e
> <?
> echo phpversion(), "\n";
> $c=pg_connect("dbname=mail user=daniel host=/tmp port=5000");
> pg_query("SET standard_conforming_strings=off");
> echo pg_escape_string('toto\titi'), "\n";
> pg_query("SET standard_conforming_strings=on");
> echo pg_escape_string('toto\titi'), "\n";
> ?>
>
> Output:
> 5.2.0-8+etch13
> toto\\titi
> toto\titi

Very interesting! That's exactly what I had hoped would happen, but for
some reason it didn't. I've managed to replicate this with a standalone
test script, which means that here must be something else going wrong in
our application.

Thank you all for your help!

  - Conrad


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

Предыдущее
От: Brad Nicholson
Дата:
Сообщение: Re: Selling an 8.1 to 8.3 upgrade
Следующее
От: Johan Nel
Дата:
Сообщение: Determining the names of columns in a dynamic query