aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-18 16:40:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-18 16:40:07 +0200
commitd79a821138367d3212109e837ee07fb51d52a9cd (patch)
treee8ab3d88ef128e5f53ced768020195070f2691d6
parent2927d7e0ee0e2e1714d21f46cd41279307428efa (diff)
Add missing factory creation code
-rw-r--r--odb/oracle/database.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/odb/oracle/database.cxx b/odb/oracle/database.cxx
index 8c20faa..63b4424 100644
--- a/odb/oracle/database.cxx
+++ b/odb/oracle/database.cxx
@@ -49,6 +49,11 @@ namespace odb
auto_environment_.reset (environment_);
}
+
+ if (factory_.get () == 0)
+ factory_.reset (new connection_pool_factory ());
+
+ factory_->database (*this);
}
database::