Re: Quoting " - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Quoting "
Date
Msg-id dcc563d10804300852r7721a7e3q5cb6bb0cf5b83441@mail.gmail.com
Whole thread Raw
In response to Quoting "  (Andy Anderson <aanderson@amherst.edu>)
Responses Re: Quoting "  (Andy Anderson <aanderson@amherst.edu>)
List pgsql-general
On Wed, Apr 30, 2008 at 7:10 AM, Andy Anderson <aanderson@amherst.edu> wrote:
> In a test I just did, the sequence \" (backslash double-quote) is
> interpreted as just a " inside of the E'...' string constant expression.
> This is great, since PHP's addslashes() sticks them in along with the other
> stuff I really need to quote like ' and \. But I see that \" isn't
> documented in the manual in section 4.1.2.1. I assume this is, in fact,
> standard behavior for Postgres? (Perhaps a comprehensive table might be a
> good idea at this point in the manual.)

Why are you using php's addslashes() function?  Is there something
missing from pg_escape_string()???  Or are you doing something else
I'm not thinking of?

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Deadlock situation?
Next
From: Joseph S
Date:
Subject: Re: Why is postgres autovacuuming a table that is never updated?