diff options
Diffstat (limited to 'odb/database.txx')
-rw-r--r-- | odb/database.txx | 5 |
1 files changed, 3 insertions, 2 deletions
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<T> r (query_<T, class_traits<T>::kind>::call (*this, q)); |