ODBC: SQLGetDescField returns incorrect length for SQL_DESC_COUNTfield of APD

Поиск
Список
Период
Сортировка
От Werewolf
Тема ODBC: SQLGetDescField returns incorrect length for SQL_DESC_COUNTfield of APD
Дата
Msg-id 5b31c146-80fd-f480-ea7a-f64102be4721@yandex.ru
обсуждение исходный текст
Список pgsql-bugs
Field SQL_DESC_COUNT should fit into a variable of type SQLSMALLINT. But 
when retrieving this field of APD SQLGetDescField returns SQLINTEGER 
value. So memory corruption is possible in application using psqlodbc 
driver.
Also the function returns an undefined error code -8.

The mistake is located here

https://git.postgresql.org/gitweb/?p=psqlodbc.git;a=blob;f=pgapi30.c;h=ba0dd6d731bbccd81392def43ae9b10e9c013aef;hb=HEAD#l1240

Just replace 'ret = SQL_IS_SMALLINT;' with 'rettype = SQL_IS_SMALLINT;'.



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15876: A SUGGESTION