Re: Re: Escaping strings for inclusion into SQL queries

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Re: Escaping strings for inclusion into SQL queries
Дата
Msg-id Pine.LNX.4.30.0109010954520.722-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: Re: Escaping strings for inclusion into SQL queries  (Florian Weimer <Florian.Weimer@RUS.Uni-Stuttgart.DE>)
Ответы Re: Re: Escaping strings for inclusion into SQL queries
Список pgsql-hackers
Florian Weimer writes:

> The first version escaped ' with ''.  I changed it when I noticed that
> if \' is used instead, the same function can be used for strings
> ('...') and identifiers ("...").

Last time I checked (15 seconds ago), you could not escape " with \ in
PostgreSQL.  The identifer parsing rules are a bit different from strings.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



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

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: INTERVAL type: SQL92 implementation
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Escaping strings for inclusion into SQL queries