Re: Issue of upgrading from 9.0.4 to 9.1.3 - Mailing list pgsql-general

From John R Pierce
Subject Re: Issue of upgrading from 9.0.4 to 9.1.3
Date
Msg-id 4F87C542.7040103@hogranch.com
Whole thread Raw
In response to Issue of upgrading from 9.0.4 to 9.1.3  (Zhidong She <zhidong.she@gmail.com>)
List 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 by date:

Previous
From: Zhidong She
Date:
Subject: Issue of upgrading from 9.0.4 to 9.1.3
Next
From: Raghavendra
Date:
Subject: Re: Issue of upgrading from 9.0.4 to 9.1.3