From f5d79a0cd5dc12a430d17bbdca7ec5aacb45996c 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/database.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odb/database.hxx') diff --git a/odb/database.hxx b/odb/database.hxx index 2e6c79d..5ec98a7 100644 --- a/odb/database.hxx +++ b/odb/database.hxx @@ -177,8 +177,8 @@ namespace odb // Transactions. // public: - transaction_impl* - begin (); + virtual transaction_impl* + begin () = 0; // Connections. // -- cgit v1.1