Skip to content

Commit

Permalink
Fix proposal for issue #13
Browse files Browse the repository at this point in the history
It is going to be submitted as pull request, so let's see how travis-ci will handle this.
  • Loading branch information
mloskot committed Oct 30, 2012
1 parent 67f11dc commit e0d942c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/postgresql/statement.cpp
Expand Up @@ -49,7 +49,7 @@ void postgresql_statement_backend::clean_up()
PQclear(result_);
result_ = NULL;

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

0 comments on commit e0d942c

Please sign in to comment.