From 9155251867692cb212c26fd5380abc0815c2f44b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 21 Feb 2011 12:47:58 +0200 Subject: Factor out active statement cancelling into separate function --- odb/mysql/connection.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'odb/mysql/connection.cxx') diff --git a/odb/mysql/connection.cxx b/odb/mysql/connection.cxx index 98fd427..cfdd26c 100644 --- a/odb/mysql/connection.cxx +++ b/odb/mysql/connection.cxx @@ -8,6 +8,7 @@ #include #include +#include #include #include #include @@ -92,6 +93,12 @@ namespace odb } } + void connection:: + clear_ () + { + active_->cancel (); // Should clear itself from active_. + } + MYSQL_STMT* connection:: alloc_stmt_handle () { -- cgit v1.1