Re: postgresql, odbc and escape characters? - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: postgresql, odbc and escape characters?
Date
Msg-id 200408270944.59419.peter_e@gmx.net
Whole thread Raw
In response to postgresql, odbc and escape characters?  (Kristian Rink <krink@pm-planc.de>)
Responses Re: postgresql, odbc and escape characters?  (Kristian Rink <krink@pm-planc.de>)
List pgsql-general
Kristian Rink wrote:
> For what I understood (and what sounds logical to me, looking at
> those things are handled in unix environments), the \' in "escape
> '\'" is parsed as an escaped ' char, so in the end the query fails
> because of a missing string termination.
>
> Question: Is there any way to modify the behavior of postgresql
> server itself or of the odbc driver to deal with things like that?

No.  Just pick a different escape character or double the backslash.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-general by date:

Previous
From: Kristian Rink
Date:
Subject: postgresql, odbc and escape characters?
Next
From: Richard Huxton
Date:
Subject: Re: Creating Functions in Separate Schema