Re: Issue of upgrading from 9.0.4 to 9.1.3

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Issue of upgrading from 9.0.4 to 9.1.3
Дата
Msg-id 4F87C542.7040103@hogranch.com
обсуждение исходный текст
Ответ на Issue of upgrading from 9.0.4 to 9.1.3  (Zhidong She <zhidong.she@gmail.com>)
Список pgsql-general
On 04/12/12 11:09 PM, Zhidong She wrote:
> but in 9.1.3, the postgresql denied the same sql, then it worked after
> I changed it to
> insert into test values('abc''a');
>
> How to configure 9.1.3 and let it also accept \ as the escpage? Could
> someone help me out?

use E'abc\'a', this is the SQL standard for escaped strings.

or even better, use $$ quoting, like $$abc'a$$



--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast


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

Предыдущее
От: Zhidong She
Дата:
Сообщение: Issue of upgrading from 9.0.4 to 9.1.3
Следующее
От: Raghavendra
Дата:
Сообщение: Re: Issue of upgrading from 9.0.4 to 9.1.3