Re: escaping and quoting

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Maarten Deprez *EXTERN*" <maartendeprez(at)scarlet(dot)be>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: escaping and quoting
Date: 2008-05-21 06:52:58
Message-ID: D960CB61B694CF459DCFB4B0128514C2021DE69B@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2008-05-21 07:00:55 Re: best er modeling tool for postgreSQL
Previous Message Andy Dale 2008-05-21 06:30:36 Re: Server Configuration