Re: sql standard: \' or '' - Mailing list pgsql-general

From CSN
Subject Re: sql standard: \' or ''
Date
Msg-id 20040505222233.97884.qmail@web40607.mail.yahoo.com
Whole thread Raw
In response to sql standard: \' or ''  (CSN <cool_screen_name90001@yahoo.com>)
List pgsql-general
--- CSN <cool_screen_name90001@yahoo.com> wrote:
>
> --- Gregory Wood <gwood@ewebengine.com> wrote:
> > CSN wrote:
> > > I heard that the sql standard for escaping
> quotes
> > is
> > > '', and not \'. Is this true?
> > >
> > > BTW, PHP's pg_escape_string returns \' and not
> ''.
> >
> > Are you sure about that?
> >
> > ~# php -r "print pg_escape_string(\"I can't
> believe
> > that quotes are
> > escaped improperly\n\");"
> > I can''t believe that quotes are escaped
> improperly
> >
> > Greg
>
> Weird. Via cgi it escapes them as \' and via cli as
> '', for me anyway.
>

er, nevermind, magic_quotes_gpc is doing the \'.





__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover

pgsql-general by date:

Previous
From: CSN
Date:
Subject: Re: sql standard: \' or ''
Next
From: Bill Moran
Date:
Subject: Re: sql standard: \' or ''