From 3f64781802deb7f910a37e3998cfc358b65e24e9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 30 Aug 2011 16:10:02 +0200 Subject: Implement uniform handle management across all databases Also use the auto_handle template instead of the raw handle in connection, statement, and result classes. This removes a lot of brittle "exception safety guarantee" code that we had in those classes. --- odb/mysql/statement.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'odb/mysql/statement.cxx') diff --git a/odb/mysql/statement.cxx b/odb/mysql/statement.cxx index bc29ff5..3a76c4d 100644 --- a/odb/mysql/statement.cxx +++ b/odb/mysql/statement.cxx @@ -29,6 +29,10 @@ namespace odb statement:: ~statement () { + // Let the connection handle the release of the statement (it + // may delay the actual freeing if it will mess up the currently + // active statement). + // conn_.free_stmt_handle (stmt_); } -- cgit v1.1