Re: sql standard: \' or ''

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: sql standard: \' or ''
Дата
Msg-id Pine.LNX.4.33.0405051628390.3364-100000@css120.ihs.com
обсуждение исходный текст
Ответ на Re: sql standard: \' or ''  (CSN <cool_screen_name90001@yahoo.com>)
Список pgsql-general
On Wed, 5 May 2004, CSN 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.

Maybe their different versions?  an older one that uses \' and a newer one
that uses ''?

Just a guess.


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

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: sql standard: \' or ''
Следующее
От: Martin Marques
Дата:
Сообщение: Re: Listing databases