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.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'odb/mysql/database.cxx') diff --git a/odb/mysql/database.cxx b/odb/mysql/database.cxx index dc78bce..d37351f 100644 --- a/odb/mysql/database.cxx +++ b/odb/mysql/database.cxx @@ -208,6 +208,12 @@ namespace odb details::options::print_usage (os); } + transaction_impl* database:: + begin () + { + return new transaction_impl (*this); + } + odb::connection* database:: connection_ () { -- cgit v1.1