diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-01-15 15:54:18 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-01-15 15:54:18 +0000 |
commit | b40c24e3661474b07c940b7c989bd728773006fc (patch) | |
tree | e599a626cdbc65b9bc68ab8bb4067e0fa1f1eb26 /cpp/demo/Database/Oracle/occi/Util.cpp | |
parent | remove /usr/share/doc/Ice-xxx/config (diff) | |
download | ice-b40c24e3661474b07c940b7c989bd728773006fc.tar.bz2 ice-b40c24e3661474b07c940b7c989bd728773006fc.tar.xz ice-b40c24e3661474b07c940b7c989bd728773006fc.zip |
Misc fixes
Diffstat (limited to 'cpp/demo/Database/Oracle/occi/Util.cpp')
-rw-r--r-- | cpp/demo/Database/Oracle/occi/Util.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/cpp/demo/Database/Oracle/occi/Util.cpp b/cpp/demo/Database/Oracle/occi/Util.cpp index 840471de51b..44c6dda8912 100644 --- a/cpp/demo/Database/Oracle/occi/Util.cpp +++ b/cpp/demo/Database/Oracle/occi/Util.cpp @@ -15,10 +15,10 @@ using namespace std; using namespace oracle::occi; -ConnectionHolder::ConnectionHolder(StatelessConnectionPool* pool) - : _con(pool->getAnyTaggedConnection()), - _txDone(false), - _pool(pool) +ConnectionHolder::ConnectionHolder(StatelessConnectionPool* pool) : + _con(pool->getAnyTaggedConnection()), + _txDone(false), + _pool(pool) { } @@ -74,14 +74,14 @@ ConnectionHolder::~ConnectionHolder() } StatementHolder::StatementHolder(Connection* con) : - _stmt(con->createStatement()), - _con(con) + _con(con), + _stmt(con->createStatement()) { } StatementHolder::StatementHolder(const ConnectionHolderPtr& conh) : - _stmt(conh->connection()->createStatement()), - _con(conh->connection()) + _con(conh->connection()), + _stmt(conh->connection()->createStatement()) { } @@ -151,4 +151,3 @@ decodeRef(const string& str, Environment* env, Connection* con) throw Ice::ObjectNotExistException(__FILE__, __LINE__); } } - |