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/connection.cxx | 3 --- 1 file changed, 3 deletions(-) (limited to 'odb/mysql/connection.cxx') diff --git a/odb/mysql/connection.cxx b/odb/mysql/connection.cxx index fe4996f..b783f69 100644 --- a/odb/mysql/connection.cxx +++ b/odb/mysql/connection.cxx @@ -77,9 +77,6 @@ namespace odb transaction_impl* connection:: begin () { - if (transaction::has_current ()) - throw already_in_transaction (); - return new transaction_impl (connection_ptr (inc_ref (this))); } -- cgit v1.1