Re: sql standard: \' or ''

From: CSN <cool_screen_name90001(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: sql standard: \' or ''
Date: 2004-05-05 22:20:12
Message-ID: 20040505222012.33696.qmail@web40614.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


--- Gregory Wood <gwood(at)ewebengine(dot)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.



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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message CSN 2004-05-05 22:22:33 Re: sql standard: \' or ''
Previous Message Martin Marques 2004-05-05 22:14:44 Re: Listing databases