From be5d50d5e68f2dbf904378480b26495249720320 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 18 Jun 2012 16:05:11 +0200 Subject: Remove unnecessary checks for current transaction --- odb/database.txx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'odb/database.txx') diff --git a/odb/database.txx b/odb/database.txx index 7f7b90f..7ac19d7 100644 --- a/odb/database.txx +++ b/odb/database.txx @@ -115,8 +115,9 @@ namespace odb { // T is always object_type. // - if (!transaction::has_current ()) - throw not_in_transaction (); + + // We don't need to check for transaction here; + // object_traits::query () does this. result r (query_::kind>::call (*this, q)); -- cgit v1.1