diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-08-18 18:43:12 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-08-18 18:43:12 +0000 |
commit | 618a9a91273aa26da5d9785e85b9e245c5acb2cd (patch) | |
tree | 425071eba2a53403f81e1551de34e10d10bf3f67 /cpp/demo/Database/Oracle/occi/DeptFactoryI.cpp | |
parent | Bug 1207 (diff) | |
download | ice-618a9a91273aa26da5d9785e85b9e245c5acb2cd.tar.bz2 ice-618a9a91273aa26da5d9785e85b9e245c5acb2cd.tar.xz ice-618a9a91273aa26da5d9785e85b9e245c5acb2cd.zip |
Various bug fixes
Diffstat (limited to 'cpp/demo/Database/Oracle/occi/DeptFactoryI.cpp')
-rw-r--r-- | cpp/demo/Database/Oracle/occi/DeptFactoryI.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/demo/Database/Oracle/occi/DeptFactoryI.cpp b/cpp/demo/Database/Oracle/occi/DeptFactoryI.cpp index 1f0c1fbdb36..c5b3faa1eac 100644 --- a/cpp/demo/Database/Oracle/occi/DeptFactoryI.cpp +++ b/cpp/demo/Database/Oracle/occi/DeptFactoryI.cpp @@ -58,8 +58,8 @@ DeptFactoryI::findAll(const Ice::Current& current) { StatementHolder stmth(conh); - auto_ptr<ResultSet> rs = - stmth.statement()->executeQuery("SELECT DEPTNO FROM DEPT_VIEW"); + auto_ptr<ResultSet> rs( + stmth.statement()->executeQuery("SELECT DEPTNO FROM DEPT_VIEW")); while(rs->next() != ResultSet::END_OF_FETCH) { @@ -89,8 +89,8 @@ DeptFactoryI::findByName(const string& name, const Ice::Current& current) stmth.statement()->setString(1, name); stmth.statement()->execute(); - auto_ptr<ResultSet> rs = - stmth.statement()->getResultSet(); + auto_ptr<ResultSet> rs( + stmth.statement()->getResultSet()); while(rs->next() != ResultSet::END_OF_FETCH) { |