Re: Any way to disable backslash as a string literal escape character?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Any way to disable backslash as a string literal escape character?
Дата
Msg-id 20279.1072757355@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Any way to disable backslash as a string literal escape character?  ("Grant Allen" <Grant.Allen@towersoft.com.au>)
Список pgsql-general
"Grant Allen" <Grant.Allen@towersoft.com.au> writes:
> Basically, I want to turn off backslash ( \ ) as an escape character
> in string literals.

No can do without hacking backend code.  But why are you more concerned
about backslash than, say, single-quote (')?  I cannot envision any way
of embedding arbitrary strings into SQL commands that doesn't have some
kind of escape-character rule.

I suspect what you really need is a way to supply strings as out-of-line
parameters to SQL commands.  This is available in PG as of 7.4, and I
think all the other major DBs had it long before.

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [pgsql-advocacy] Is my MySQL Gaining ?
Следующее
От: Sean Shanny
Дата:
Сообщение: Re: Out of memory error when doing an update with IN clause