summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2001-04-18 11:46:58 +0000
committerFrank Schönheit <fs@openoffice.org>2001-04-18 11:46:58 +0000
commit26223096bb940bb7ff55164c981620f9fc1a2dde (patch)
tree6b3b692fe418c3b55a9031e515af6279ba629623 /dbaccess
parent1c931180c4a5f390f23f1baeebaac0bb995d5b66 (diff)
when setting the ActiveConnection from outside, correctly call setActiveConnection
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/RowSet.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx
index 73daa6ac5a9d..fc0bd44441b6 100644
--- a/dbaccess/source/core/api/RowSet.cxx
+++ b/dbaccess/source/core/api/RowSet.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: RowSet.cxx,v $
*
- * $Revision: 1.58 $
+ * $Revision: 1.59 $
*
- * last change: $Author: fs $ $Date: 2001-04-12 09:32:26 $
+ * last change: $Author: fs $ $Date: 2001-04-18 12:46:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -367,8 +367,11 @@ void SAL_CALL ORowSet::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const
{
case PROPERTY_ID_ACTIVECONNECTION:
// the new connection
- m_aActiveConnection >>= m_xActiveConnection;
- setActiveConnection(m_xActiveConnection, sal_False);
+ {
+ Reference< XConnection > xNewConnection;
+ m_aActiveConnection >>= xNewConnection;
+ setActiveConnection(xNewConnection, sal_False);
+ }
m_bOwnConnection = sal_False;
m_bCreateStatement = sal_True;