Skip to content
Browse files

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

SF #506: Data::ODBC::SessionImpl.canTransact fails on Win 7
  • Loading branch information...
1 parent 2b1de7e commit e3d49fe766c0707fa1ecdcff56ecfa66ea940806 @aleks-f aleks-f committed Dec 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Data/ODBC/src/SessionImpl.cpp
View
2 Data/ODBC/src/SessionImpl.cpp
@@ -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) ?

0 comments on commit e3d49fe

Please sign in to comment.
Something went wrong with that request. Please try again.