diff --git a/Database/HDBC/ODBC/Connection.hsc b/Database/HDBC/ODBC/Connection.hsc index 09aaf21..3f0d404 100644 --- a/Database/HDBC/ODBC/Connection.hsc +++ b/Database/HDBC/ODBC/Connection.hsc @@ -117,7 +117,7 @@ mkConn args iconn = withDbcOrDie iconn $ \cconn -> clientname <- peekCStringLen (pbuf, fromIntegral len) sqlGetInfo cconn #{const SQL_TXN_CAPABLE} (castPtr psqlusmallint) - 0 nullPtr + #{size SQLUSMALLINT} nullPtr >>= checkError "sqlGetInfo SQL_TXN_CAPABLE" (DbcHandle cconn) txninfo <- ((peek psqlusmallint)::IO (#{type SQLUSMALLINT})) let txnsupport = txninfo /= #{const SQL_TC_NONE}