Re: sql standard: \' or ''

From: Gregory Wood <gwood(at)ewebengine(dot)com>
To: CSN <cool_screen_name90001(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: sql standard: \' or ''
Date: 2004-05-05 22:10:28
Message-ID: 40996654.6030207@ewebengine.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martin Marques 2004-05-05 22:14:44 Re: Listing databases
Previous Message Mark Harrison 2004-05-05 22:07:35 Re: Listing databases