Re: Issue of upgrading from 9.0.4 to 9.1.3

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Issue of upgrading from 9.0.4 to 9.1.3
Date: 2012-04-13 06:18:42
Message-ID: 4F87C542.7040103@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Raghavendra 2012-04-13 06:19:30 Re: Issue of upgrading from 9.0.4 to 9.1.3
Previous Message Zhidong She 2012-04-13 06:09:11 Issue of upgrading from 9.0.4 to 9.1.3