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

Поиск
Список
Период
Сортировка
От Thomas G. Lockhart
Тема Re: [INTERFACES] '\' and varchar data type problem w/ MS Access a nd ODBC driver
Дата
Msg-id 35D2518C.EBF8ECFD@alumni.caltech.edu
обсуждение исходный текст
Ответ на RE: [INTERFACES] '\' and varchar data type problem w/ MS Access a nd ODBC driver  (Paul Lisewski <paull@techone.com.au>)
Ответы 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>)
Список 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 по дате отправления:

Предыдущее
От: kataoka@interwiz.koganei.tokyo.jp (Hiroki Kataoka)
Дата:
Сообщение: Re: [INTERFACES] '\' and varchar data type problem w/ MS Access and ODBC driver
Следующее
От: "James Oden"
Дата:
Сообщение: Re: [INTERFACES] '\' and varchar data type problem w/ MS Access and ODBC driver