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
This commit is contained in:
Vladimir Glazounov 2003-06-06 09:50:16 +00:00
parent 51938807b6
commit f225dd99b0

View file

@ -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;