Re: Select with backslash '\' character - Mailing list pgsql-bugs

From Stephan Szabo
Subject Re: Select with backslash '\' character
Date
Msg-id 20011029095411.X9662-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Select with backslash '\' character  ("Andy Hallam" <ahm@exel.co.uk>)
List pgsql-bugs
On Fri, 26 Oct 2001, Andy Hallam wrote:

> PostgreSQL - 7.1.3  (installed on Linux 2.4.2-2)
> PSQLODBC.DLL - 07.01.0007
> Visual C++ - 6.0
>
> SELECT a FROM b WHERE c = 'WORKGROUP\me'
>
> Does not return any rows.
>
> SELECT a FROM b WHERE c = 'WORKGROUP\\me'
>
> Returns required rows.
>
> Result = PostgreSQL ODBC driver cannot handle backslash character - have to
> escape it myself.

Actually, it's probably the backend since I'm pretty sure you get the
same thing in psql.  IIRC, the \ is treated as an escape character to
escape what follows (like a ' or for providing octal values).

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problems when inserting a very large sequence of records
Next
From: Bruce Momjian
Date:
Subject: Re: ecpg - GRANT bug