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.cxx | 3 --- 1 file changed, 3 deletions(-) (limited to 'odb/database.cxx') diff --git a/odb/database.cxx b/odb/database.cxx index b9a6d80..5da6a40 100644 --- a/odb/database.cxx +++ b/odb/database.cxx @@ -14,9 +14,6 @@ namespace odb unsigned long long database:: execute (const char* st, std::size_t n) { - if (!transaction::has_current ()) - throw not_in_transaction (); - connection_type& c (transaction::current ().connection ()); return c.execute (st, n); } -- cgit v1.1