Skip site navigation (1) Skip section navigation (2)

Re: Select with backslash '\' character

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Andy Hallam <ahm(at)exel(dot)co(dot)uk>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Select with backslash '\' character
Date: 2001-10-29 17:56:33
Message-ID: 20011029095411.X9662-100000@megazone23.bigpanda.com (view raw or flat)
Thread:
Lists: 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).



In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2001-10-29 18:15:58
Subject: Re: Bug #500: Cannot create View and Problems With the UNION clause
Previous:From: Stephan SzaboDate: 2001-10-29 17:53:57
Subject: Re: reference to inherited column in parent

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group