Re: [ODBC] ODBC large binary data support

Поиск
Список
Период
Сортировка
От Volker Beck
Тема Re: [ODBC] ODBC large binary data support
Дата
Msg-id trinity-b0ddd448-70ce-460f-aebd-028faca0c992-1483961917243@3capp-gmx-bs72
обсуждение исходный текст
Ответ на Re: [ODBC] ODBC large binary data support  (myaddress@gmx-topmail.de)
Список pgsql-odbc
Dear Hiroshi Inoue,
 
It's working for the 64-bit version. Unfortunately, it's not working correctly for the 32-bit version. The problem is the last parameter of "SQLGetData". For the 32-bit version this is a pointer to a 32-bit signed integer (SQLLEN). This means, the integer overflows for large data >2 GB. I suggest to saturate the value for the 32-bit version and return 0x7fffffff in case the real value is bigger than that. Most applications just check if it's bigger than the provided buffer size and for that returning 0x7fffffff works fine. What do you think about it?
Thanks a lot!

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

Предыдущее
От: "Inoue, Hiroshi"
Дата:
Сообщение: Re: [ODBC] ODBC large binary data support
Следующее
От: myaddress@gmx-topmail.de
Дата:
Сообщение: Re: [ODBC] ODBC large binary data support