summaryrefslogtreecommitdiffstats
path: root/app/sql/statement.cc
diff options
context:
space:
mode:
Diffstat (limited to 'app/sql/statement.cc')
-rw-r--r--app/sql/statement.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/sql/statement.cc b/app/sql/statement.cc
index 7abc225..d143524 100644
--- a/app/sql/statement.cc
+++ b/app/sql/statement.cc
@@ -30,6 +30,7 @@ Statement::~Statement() {
}
void Statement::Assign(scoped_refptr<Connection::StatementRef> ref) {
+ Reset();
ref_ = ref;
}