Skip to content

Commit

Permalink
Fixed #13 by partially reverting SHA1: 02bb841, so prepared statement…
Browse files Browse the repository at this point in the history
… is not prematurely deallocated in postgresql_statement_backend::clean_up(). The recent fix for #19 submitted as SHA1: 8c05035 corrects the missing deallocation from destructor. It means, both bugs should have been fixed now.
  • Loading branch information
mloskot committed Dec 5, 2012
1 parent 8c05035 commit d57b313
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/backends/postgresql/statement.cpp
Expand Up @@ -54,12 +54,6 @@ void postgresql_statement_backend::clean_up()
{
PQclear(result_);
result_ = NULL;

if (stType_ != st_repeatable_query && statementName_.empty() == false)
{
session_.deallocate_prepared_statement(statementName_);
statementName_.clear();
}
}
}

Expand Down

0 comments on commit d57b313

Please sign in to comment.