diff options
author | Ocke Janssen <oj@openoffice.org> | 2000-10-17 08:15:19 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2000-10-17 08:15:19 +0000 |
commit | 53ace770fc6e8463a05709c164073a887ee5ef63 (patch) | |
tree | 5254aebda769c4ac07d3342eff26cdda463ae88b /connectivity/source/drivers/flat/EConnection.cxx | |
parent | 358f906457e2ada8da40352bcadaa0f01070bd86 (diff) |
class renamed
Diffstat (limited to 'connectivity/source/drivers/flat/EConnection.cxx')
-rw-r--r-- | connectivity/source/drivers/flat/EConnection.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/connectivity/source/drivers/flat/EConnection.cxx b/connectivity/source/drivers/flat/EConnection.cxx index 7413a84a75..4bc5fe924a 100644 --- a/connectivity/source/drivers/flat/EConnection.cxx +++ b/connectivity/source/drivers/flat/EConnection.cxx @@ -2,9 +2,9 @@ * * $RCSfile: EConnection.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: oj $ $Date: 2000-10-05 14:42:44 $ + * last change: $Author: oj $ $Date: 2000-10-17 09:14:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -184,8 +184,9 @@ Reference< XStatement > SAL_CALL OFlatConnection::createStatement( ) throw(SQLE throw DisposedException(); OFlatStatement* pStmt = new OFlatStatement(this); + Reference< XStatement > xStmt = pStmt; m_aStatements.push_back(WeakReferenceHelper(*pStmt)); - return pStmt; + return xStmt; } // -------------------------------------------------------------------------------- Reference< XPreparedStatement > SAL_CALL OFlatConnection::prepareStatement( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException) @@ -195,9 +196,11 @@ Reference< XPreparedStatement > SAL_CALL OFlatConnection::prepareStatement( cons throw DisposedException(); OFlatPreparedStatement* pStmt = new OFlatPreparedStatement(this,m_aTypeInfo); + Reference< XPreparedStatement > xStmt = pStmt; pStmt->construct(sql); + m_aStatements.push_back(WeakReferenceHelper(*pStmt)); - return pStmt; + return xStmt; } // -------------------------------------------------------------------------------- Reference< XPreparedStatement > SAL_CALL OFlatConnection::prepareCall( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException) |