diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-04-30 12:05:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-04-30 12:08:17 +0200 |
commit | 3e35d69611534c57f06bfc7ec11f505ba97c8aab (patch) | |
tree | a167f0acf8bf35bf32dfafe4c226b65b66fae394 /odb/oracle/database.cxx | |
parent | a8e11c5e5688f53cd9ac5af6dffe9a3db0dffba7 (diff) |
Add transaction::connection(database&) overload
Diffstat (limited to 'odb/oracle/database.cxx')
-rw-r--r-- | odb/oracle/database.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/oracle/database.cxx b/odb/oracle/database.cxx index a141fa0..3b720be 100644 --- a/odb/oracle/database.cxx +++ b/odb/oracle/database.cxx @@ -304,7 +304,9 @@ namespace odb cp = factory_->connect (); oracle::connection& c ( - cp != 0 ? *cp : transaction::current ().connection ()); + cp != 0 + ? *cp + : transaction::current ().connection (const_cast<database&> (*this))); try { |