Skip to content

Commit

Permalink
Fix stack corruption in db2 statement
Browse files Browse the repository at this point in the history
SQLSetStmtAttr for SQL_ATTR_PARAMS_PROCESSED_PTR takes 32-bit or 64-bit integer, but 16-bit was given.
  • Loading branch information
mloskot committed Feb 24, 2013
1 parent cf0dcfd commit 161a5da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/db2/statement.cpp
Expand Up @@ -140,7 +140,7 @@ void db2_statement_backend::prepare(std::string const & query ,
statement_backend::exec_fetch_result
db2_statement_backend::execute(int number )
{
SQLSMALLINT rows_processed = 0;
SQLULEN rows_processed = 0;

if (hasVectorUseElements)
{
Expand Down

0 comments on commit 161a5da

Please sign in to comment.