Permalink
Browse files

freeing a statement automatically closes the cursor and releases colu…

…mn buffers
  • Loading branch information...
toonen committed Aug 17, 2012
1 parent 061ac50 commit 311d7425b6ade0b5ea910c907ab90d3397b183e8
Showing with 0 additions and 8 deletions.
  1. +0 −8 src/backends/db2/statement.cpp
@@ -37,14 +37,6 @@ void db2_statement_backend::clean_up()
{
SQLRETURN cliRC = SQL_SUCCESS;
cliRC=SQLFreeStmt(hStmt,SQL_CLOSE);
if (cliRC != SQL_SUCCESS) {
throw db2_soci_error(db2_soci_error::sqlState("Statement handle close error",SQL_HANDLE_STMT,hStmt),cliRC);
}
cliRC=SQLFreeStmt(hStmt,SQL_UNBIND);
if (cliRC != SQL_SUCCESS) {
throw db2_soci_error(db2_soci_error::sqlState("Statement handle unbind error",SQL_HANDLE_STMT,hStmt),cliRC);
}
cliRC=SQLFreeHandle(SQL_HANDLE_STMT,hStmt);
if (cliRC != SQL_SUCCESS) {
throw db2_soci_error(db2_soci_error::sqlState("Statement handle clean-up error",SQL_HANDLE_STMT,hStmt),cliRC);

0 comments on commit 311d742

Please sign in to comment.