From ae4b24d8d83a46dce969fd049a480bcaaeb0ad83 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/pgsql/database.ixx | 6 ------ 1 file changed, 6 deletions(-) (limited to 'odb/pgsql/database.ixx') diff --git a/odb/pgsql/database.ixx b/odb/pgsql/database.ixx index 467f765..527e336 100644 --- a/odb/pgsql/database.ixx +++ b/odb/pgsql/database.ixx @@ -16,11 +16,5 @@ namespace odb return connection_ptr ( static_cast (connection_ ())); } - - inline transaction_impl* database:: - begin () - { - return connection ()->begin (); - } } } -- cgit v1.1