summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/ado/AKey.cxx
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2002-01-18 15:35:28 +0000
committerFrank Schönheit <fs@openoffice.org>2002-01-18 15:35:28 +0000
commitbf37f042c9d2d53abb75bc5ec8b245a231612477 (patch)
tree42214e98a299a3f00582b8dc14e07f73124b2a5e /connectivity/source/drivers/ado/AKey.cxx
parent0684ab32a28c94e2a328b045c69eab1cb511ec64 (diff)
#96445# massive re-arrangements regarding the ref-counts of the ADO system objects
Diffstat (limited to 'connectivity/source/drivers/ado/AKey.cxx')
-rw-r--r--connectivity/source/drivers/ado/AKey.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/connectivity/source/drivers/ado/AKey.cxx b/connectivity/source/drivers/ado/AKey.cxx
index 5ab0937b97c9..8c9c6afe4c14 100644
--- a/connectivity/source/drivers/ado/AKey.cxx
+++ b/connectivity/source/drivers/ado/AKey.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AKey.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: oj $ $Date: 2001-11-09 07:05:38 $
+ * last change: $Author: fs $ $Date: 2002-01-18 16:33:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -110,8 +110,12 @@ void OAdoKey::refreshColumns()
{
TStringVector aVector;
- WpADOColumns aColumns = m_aKey.get_Columns();
- aColumns.fillElementNames(aVector);
+ WpADOColumns aColumns;
+ if ( m_aKey.IsValid() )
+ {
+ aColumns = m_aKey.get_Columns();
+ aColumns.fillElementNames(aVector);
+ }
if(m_pColumns)
m_pColumns->reFill(aVector);