summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/misc/WNameMatch.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-12-07 12:12:29 +0000
committerOcke Janssen <oj@openoffice.org>2001-12-07 12:12:29 +0000
commit6bc4e146fea818be9aa30d073ea5e362f5a8029e (patch)
treee205a79519c958fbc59c453d7f78bb1ba6465767 /dbaccess/source/ui/misc/WNameMatch.cxx
parent9885cbfb3f1c940514cb0f6d8593da66d028fb32 (diff)
#95728# check if append only was selected and set columns
Diffstat (limited to 'dbaccess/source/ui/misc/WNameMatch.cxx')
-rw-r--r--dbaccess/source/ui/misc/WNameMatch.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/dbaccess/source/ui/misc/WNameMatch.cxx b/dbaccess/source/ui/misc/WNameMatch.cxx
index 380fab795..5a5723645 100644
--- a/dbaccess/source/ui/misc/WNameMatch.cxx
+++ b/dbaccess/source/ui/misc/WNameMatch.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: WNameMatch.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: oj $ $Date: 2001-08-08 08:24:54 $
+ * last change: $Author: oj $ $Date: 2001-12-07 13:12:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -88,6 +88,9 @@
#ifndef DBAUI_WIZ_COPYTABLEDIALOG_HXX
#include "WCopyTable.hxx"
#endif
+#ifndef _COM_SUN_STAR_SDBC_DATATYPE_HPP_
+#include <com/sun/star/sdbc/DataType.hpp>
+#endif
using namespace ::dbaui;
//========================================================================
@@ -216,7 +219,11 @@ sal_Bool OWizNameMatching::LeavePage()
break;
m_pParent->m_vColumnPos[nPos] = pDestColumns->end() - aDestIter;
- m_pParent->m_vColumnTypes[nPos] = pDestField->GetType();
+ const OTypeInfo* pTypeInfo = m_pParent->convertType((*aDestIter)->second->getTypeInfo());
+ sal_Int32 nType = ::com::sun::star::sdbc::DataType::VARCHAR;
+ if(pTypeInfo)
+ nType = pTypeInfo->nType;
+ m_pParent->m_vColumnTypes[nPos] = nType;
}
else
m_pParent->m_vColumnPos[nPos] = CONTAINER_ENTRY_NOTFOUND;