Re: [INTERFACES] '\' and varchar data type problem w/ MS Access a nd ODBC driver - Mailing list pgsql-interfaces

From Thomas G. Lockhart
Subject Re: [INTERFACES] '\' and varchar data type problem w/ MS Access a nd ODBC driver
Date
Msg-id 35D2518C.EBF8ECFD@alumni.caltech.edu
Whole thread Raw
In response to RE: [INTERFACES] '\' and varchar data type problem w/ MS Access a nd ODBC driver  (Paul Lisewski <paull@techone.com.au>)
Responses Re: [INTERFACES] '\' and varchar data type problem w/ MS Access a nd ODBC driver  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [INTERFACES] '\' and varchar data type problem w/ MS Access a nd ODBC driver  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
> You can test this via psql.
> The existance of even a single '\' character will cause the data to be
> corrupted. It seems to take the next character and converts it to
> binary data of some sort. I have not found a workaround for this eg.
> '\\' does not convert to a single '\'

tgl=> create table tx (v varchar(20));
CREATE
tgl=> insert into tx values ('123\'456');
tgl=> insert into tx values ('123\\456');
tgl=> select * from tx;
v
--------
123'456
123\\456
(2 rows)

One "problem" with the backend is it escapes characters on both input
_and_ output, which has always struck me as at least partially defeating
the usefulness of escaping input.

As you notice in the above example, it does not escape all characters on
output, but only a few. But I don't know where you see binary data!?
What version are you running?

                       - Tom

pgsql-interfaces by date:

Previous
From: kataoka@interwiz.koganei.tokyo.jp (Hiroki Kataoka)
Date:
Subject: Re: [INTERFACES] '\' and varchar data type problem w/ MS Access and ODBC driver
Next
From: "James Oden"
Date:
Subject: Re: [INTERFACES] '\' and varchar data type problem w/ MS Access and ODBC driver