Re: sql standard: \' or ''

Поиск
Список
Период
Сортировка
От CSN
Тема Re: sql standard: \' or ''
Дата
Msg-id 20040505222012.33696.qmail@web40614.mail.yahoo.com
обсуждение исходный текст
Ответ на sql standard: \' or ''  (CSN <cool_screen_name90001@yahoo.com>)
Ответы Re: sql standard: \' or ''  (Bill Moran <wmoran@potentialtech.com>)
Re: sql standard: \' or ''  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список pgsql-general
--- 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.







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

В списке pgsql-general по дате отправления:

Предыдущее
От: Mark Harrison
Дата:
Сообщение: Re: Listing databases
Следующее
От: CSN
Дата:
Сообщение: Re: sql standard: \' or ''