Thread: [ODBC] SQL_QUERY_TIMEOUT

[ODBC] SQL_QUERY_TIMEOUT

From
Keith Handlon
Date:

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

From
"Inoue, Hiroshi"
Date:
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