diff options
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 { |