aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/connection.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-02-21 12:47:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-02-21 12:47:58 +0200
commit9155251867692cb212c26fd5380abc0815c2f44b (patch)
treee3c342a806f2164e8c50ee39d619ae36a9a4dfdc /odb/mysql/connection.cxx
parent495ec10e4c1880e1d6cce5526a4d6a43a48bfa94 (diff)
Factor out active statement cancelling into separate function
Diffstat (limited to 'odb/mysql/connection.cxx')
-rw-r--r--odb/mysql/connection.cxx7
1 files changed, 7 insertions, 0 deletions
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 <odb/mysql/database.hxx>
#include <odb/mysql/connection.hxx>
+#include <odb/mysql/statement.hxx>
#include <odb/mysql/error.hxx>
#include <odb/mysql/exceptions.hxx>
#include <odb/mysql/statement-cache.hxx>
@@ -92,6 +93,12 @@ namespace odb
}
}
+ void connection::
+ clear_ ()
+ {
+ active_->cancel (); // Should clear itself from active_.
+ }
+
MYSQL_STMT* connection::
alloc_stmt_handle ()
{