Re: Quoting " - Mailing list pgsql-general

From Andy Anderson
Subject Re: Quoting "
Date
Msg-id 6DEC8147-DF90-4845-9883-97325D88B1DD@amherst.edu
Whole thread Raw
In response to Re: Quoting "  ("Scott Marlowe" <scott.marlowe@gmail.com>)
List pgsql-general
> On Wed, Apr 30, 2008 at 9: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 \.

On Apr 30, 2008, at 11:52 AM, Scott Marlowe wrote:
> 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?

Yep, relying on what I already know to move forward on my project,
rather than browsing the manual for things I didn't know I needed :-).

Thanks for the tip.

-- Andy


pgsql-general by date:

Previous
From: "Dan Armbrust"
Date:
Subject: Re: Deadlock situation?
Next
From: dan@sidhe.org
Date:
Subject: Re: Deadlock situation?