From ce69b47672cab339994828e0ff5e28b058a517f0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 24 Aug 2011 13:42:04 +0200 Subject: Add support for transaction multiplexing Also delay getting a connection until after we do all the sanity checks (e.g., that there is no active transaction). Otherwise we are running risk of getting blocked rather than throwing an exception. --- odb/mysql/database.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odb/mysql/database.hxx') diff --git a/odb/mysql/database.hxx b/odb/mysql/database.hxx index 37b966f..ba4ee80 100644 --- a/odb/mysql/database.hxx +++ b/odb/mysql/database.hxx @@ -157,7 +157,7 @@ namespace odb } public: - transaction_impl* + virtual transaction_impl* begin (); public: -- cgit v1.1