Data::ODBC::SessionImpl.canTransact fails on Win7

SF #506: Data::ODBC::SessionImpl.canTransact fails on Win 7
This commit is contained in:
aleks-f 2012-12-11 22:00:56 -06:00
parent 2b1de7e427
commit e3d49fe766

View File

@ -218,7 +218,7 @@ bool SessionImpl::canTransact()
if (ODBC_TXN_CAPABILITY_UNKNOWN == _canTransact)
{
SQLUSMALLINT ret;
checkError(Poco::Data::ODBC::SQLGetInfo(_db, SQL_TXN_CAPABLE, &ret, 0, 0),
checkError(Poco::Data::ODBC::SQLGetInfo(_db, SQL_TXN_CAPABLE, &ret, sizeof(ret), 0),
"Failed to obtain transaction capability info.");
_canTransact = (SQL_TC_NONE != ret) ?