Getting bytea results via SQLGetData

Поиск
Список
Период
Сортировка
От Constantin S. Svintsoff
Тема Getting bytea results via SQLGetData
Дата
Msg-id Pine.BSF.4.21.0101302003110.75349-200000@localhost
обсуждение исходный текст
Список pgsql-odbc
Hi, there!

It seems there's a bug with fetching bytea (SQL_VARBINARY) columns via
SQLGetData() as SQL_C_CHAR, you always get zero-length result.
I'm using unixODBC-1.8.12, but that code is the same with code
of driver in postgres distribution.

In convert.c in function copy_and_convert_field there is a special case
for such a values, but it works improperly. Without this case, when
bytea data is processed as anything else everything seems to work fine.
Driver receives pretty good escaped data i think there is no need to do
something with it.

Here is a patch for convert.c.


/Constantin

Вложения

В списке pgsql-odbc по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: RE: Updated ODBC Driver Download
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [JDBC] Re: [INTERFACES] Postgresql and JDBC