mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 08:46:41 +01:00
Data::ODBC::SessionImpl.canTransact fails on Win7
SF #506: Data::ODBC::SessionImpl.canTransact fails on Win 7
This commit is contained in:
parent
2b1de7e427
commit
e3d49fe766
@ -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) ?
|
||||
|
Loading…
x
Reference in New Issue
Block a user