aboutsummaryrefslogtreecommitdiff
path: root/odb/database.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-24 13:42:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-24 13:42:04 +0200
commitf5d79a0cd5dc12a430d17bbdca7ec5aacb45996c (patch)
tree10518f3819b50b78470d3612a36a14580ca1ad11 /odb/database.hxx
parent27e362857cf748a54c62b157113cd4abf7eff570 (diff)
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.
Diffstat (limited to 'odb/database.hxx')
-rw-r--r--odb/database.hxx4
1 files changed, 2 insertions, 2 deletions
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.
//