Re: escaping and quoting

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: escaping and quoting
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C2021DE69B@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: escaping and quoting  (Maarten Deprez <maartendeprez@scarlet.be>)
Ответы Re: escaping and quoting
Список pgsql-general
Maarten Deprez wrote:
>>> My dbmail server using postgresql produces a lot of warnings about '\\'
>>> in strings. The particular string it is complaining about is escaped by
>>> EscapeBytea, and included in single quotes (not E''). Is it all right to
>>> set standard_compliant_strings to on?
>>
>> Depends.
> 
> Okay, what do you need to know? It can be any string, a part of an email
> message. Should strings escaped by EscapeBytea be included in "''", or
> "E''" in the SQL command, to avoid the warning?

Does the program work correctly despite the warnings?
What API are you using (there is no EscapeBytea function in the C API)?
Exactly how does the bytea string constant look that you send to the server?
Are there any other strings with backslashes in your statements?
If yes, what do they look like?

Yours,
Laurenz Albe

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

Предыдущее
От: "Andy Dale"
Дата:
Сообщение: Re: Server Configuration
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: best er modeling tool for postgreSQL