diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-05-11 09:08:22 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-05-11 09:27:47 +0200 |
commit | fd0eb17d25ee829557549255ec64f9b9b063ec8b (patch) | |
tree | 279c36bda3559b908d99f7ab87dbd192c57b4a29 /odb/pgsql/database.cxx | |
parent | f26337fb02c2f01382486407c2b3d7432df9bd37 (diff) |
Uncomment calls to connection and connection-factory interface
Diffstat (limited to 'odb/pgsql/database.cxx')
-rw-r--r-- | odb/pgsql/database.cxx | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/odb/pgsql/database.cxx b/odb/pgsql/database.cxx index 22468a4..887061b 100644 --- a/odb/pgsql/database.cxx +++ b/odb/pgsql/database.cxx @@ -7,6 +7,7 @@ #include <odb/pgsql/database.hxx> #include <odb/pgsql/exceptions.hxx> +#include <odb/pgsql/connection-factory.hxx> #include <odb/pgsql/details/options.hxx> @@ -57,12 +58,10 @@ namespace odb conninfo_ = ss.str (); - // @@ Uncomment once factory has been implemented. - // - // if (factory_.get () == 0) - // factory_.reset (new connection_pool_factory ()); + if (factory_.get () == 0) + factory_.reset (new connection_pool_factory ()); - // factory_->database (*this); + factory_->database (*this); } database:: @@ -107,12 +106,10 @@ namespace odb conninfo_ = ss.str (); - // @@ Uncomment once factory has been implemented. - // - // if (factory_.get () == 0) - // factory_.reset (new connection_pool_factory ()); + if (factory_.get () == 0) + factory_.reset (new connection_pool_factory ()); - // factory_->database (*this); + factory_->database (*this); } database:: @@ -120,12 +117,10 @@ namespace odb auto_ptr<connection_factory> factory) : port_ (0), conninfo_ (conninfo), factory_ (factory) { - // @@ Uncomment once factory has been implemented. - // - // if (factory_.get () == 0) - // factory_.reset (new connection_pool_factory ()); + if (factory_.get () == 0) + factory_.reset (new connection_pool_factory ()); - // factory_->database (*this); + factory_->database (*this); } database:: @@ -195,12 +190,10 @@ namespace odb throw cli_exception (oss.str ()); } - // @@ Uncomment once factory has been implemented. - // - // if (factory_.get () == 0) - // factory_.reset (new connection_pool_factory ()); + if (factory_.get () == 0) + factory_.reset (new connection_pool_factory ()); - // factory_->database (*this); + factory_->database (*this); } void database:: |