summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-06-06 09:50:16 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-06-06 09:50:16 +0000
commitf225dd99b0c673c38d7fc3f2ef614fc5061ac015 (patch)
treee6c7f06b0fcc7174060777e23a274fae89e405cf /connectivity
parent51938807b6844011119276f1c12c022e11f2558d (diff)
INTEGRATION: CWS dba07 (1.18.76); FILE MERGED
2003/05/28 07:10:53 oj 1.18.76.1: #109965# map null values from true/false to ColumnValue
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx b/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx
index e29d44236f21..71f87002f088 100644
--- a/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx
+++ b/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ADatabaseMetaDataResultSet.cxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: oj $ $Date: 2002-07-22 10:05:54 $
+ * last change: $Author: vg $ $Date: 2003-06-06 10:50:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -71,6 +71,7 @@
#ifndef _COM_SUN_STAR_SDBC_DATATYPE_HPP_
#include <com/sun/star/sdbc/DataType.hpp>
#endif
+#include <com/sun/star/sdbc/ColumnValue.hpp>
#ifndef _COM_SUN_STAR_SDBC_KEYRULE_HPP_
#include <com/sun/star/sdbc/KeyRule.hpp>
#endif
@@ -1210,6 +1211,11 @@ void ODatabaseMetaDataResultSet::setTypeInfoMap(sal_Bool _bJetEngine)
m_aValueRange[2] = aMap;
+ TInt2IntMap aColumnValueMapping;
+ aColumnValueMapping[VARIANT_FALSE] = ColumnValue::NO_NULLS;
+ aColumnValueMapping[VARIANT_TRUE] = ColumnValue::NULLABLE;
+ m_aValueRange[7] = aColumnValueMapping;
+
// now adjust the column mapping
// OJ 24.01.2002 96860
TInt2IntMap aSerachMapping;