diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-02-21 12:47:58 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-02-21 12:47:58 +0200 |
commit | 9155251867692cb212c26fd5380abc0815c2f44b (patch) | |
tree | e3c342a806f2164e8c50ee39d619ae36a9a4dfdc /odb/mysql/database.cxx | |
parent | 495ec10e4c1880e1d6cce5526a4d6a43a48bfa94 (diff) |
Factor out active statement cancelling into separate function
Diffstat (limited to 'odb/mysql/database.cxx')
-rw-r--r-- | odb/mysql/database.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/odb/mysql/database.cxx b/odb/mysql/database.cxx index 72b18d8..31d6c7b 100644 --- a/odb/mysql/database.cxx +++ b/odb/mysql/database.cxx @@ -218,6 +218,8 @@ namespace odb throw not_in_transaction (); connection_type& c (transaction::current ().connection ()); + c.clear (); + MYSQL* h (c.handle ()); if (mysql_real_query (h, s, static_cast<unsigned long> (n))) |