Skip site navigation (1) Skip section navigation (2)

Re: Quoting "

From: Andy Anderson <aanderson(at)amherst(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Quoting "
Date: 2008-04-30 16:51:45
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-docspgsql-general
> On Wed, Apr 30, 2008 at 9:10 AM, Andy Anderson  
> <aanderson(at)amherst(dot)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

In response to

pgsql-docs by date

Next:From: Andy AndersonDate: 2008-04-30 18:26:00
Subject: Backslash Escape Sequences
Previous:From: Scott MarloweDate: 2008-04-30 15:52:39
Subject: Re: Quoting "

pgsql-general by date

Next:From: danDate: 2008-04-30 17:36:15
Subject: Re: Deadlock situation?
Previous:From: Dan ArmbrustDate: 2008-04-30 16:17:23
Subject: Re: Deadlock situation?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group