[ODBC] SQL_QUERY_TIMEOUT

Поиск
Список
Период
Сортировка
Искать

[ODBC] SQL_QUERY_TIMEOUT

От:
Keith Handlon <Keith.Handlon@sas.com>
Дата:

When SQL_QUERY_TIMEOUT was added it was defined as SQLULEN as per the current ms odbc spec.  But as of 3.5 wasn’t it a SQLUINTEGER?

 

It looks like the majority of the other attributes like (SQL_NOSCAN, SQL_RETRIEVE_DATA, etc) are defined as SQLUINTEGER.

 

This could cause a memory overwrite if its treated like an SQLUINTEGER like the other attributes.

 

Thanks,

Keith

Re: [ODBC] SQL_QUERY_TIMEOUT

От:
"Inoue, Hiroshi" <h-inoue@dream.email.ne.jp>
Дата:
Hi Keith,

On 2017/08/02 3:22, Keith Handlon wrote:

When SQL_QUERY_TIMEOUT was added it was defined as SQLULEN as per the current ms odbc spec.  But as of 3.5 wasn’t it a SQLUINTEGER?


Probably they were described when there was no 64bit ODBC.
SQLULEN == SQLUINTEGER on 32bit ODBC,

regards,
Hiroshi Inoue
 

 

It looks like the majority of the other attributes like (SQL_NOSCAN, SQL_RETRIEVE_DATA, etc) are defined as SQLUINTEGER.

 

This could cause a memory overwrite if its treated like an SQLUINTEGER like the other attributes.

 

Thanks,

Keith

FAQ