diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-05-22 09:50:59 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-05-22 09:50:59 +0000 |
commit | 86a570db5305f6d490b8e88dc4d03fe1a8635241 (patch) | |
tree | c191e73493f25b81dcb8afa71119465f46a8f80b /connectivity | |
parent | a805af867bf77a67066b963ea7babe1da1603253 (diff) |
INTEGRATION: CWS dba06 (1.21.6); FILE MERGED
2003/05/19 10:10:47 oj 1.21.6.1: #109695# fix var handling
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/odbc/OTools.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/connectivity/source/drivers/odbc/OTools.cxx b/connectivity/source/drivers/odbc/OTools.cxx index 24d934207be0..51e2afcabfc2 100644 --- a/connectivity/source/drivers/odbc/OTools.cxx +++ b/connectivity/source/drivers/odbc/OTools.cxx @@ -2,9 +2,9 @@ * * $RCSfile: OTools.cxx,v $ * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * - * last change: $Author: hr $ $Date: 2003-04-28 16:06:53 $ + * last change: $Author: vg $ $Date: 2003-05-22 10:50:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -260,7 +260,6 @@ void OTools::bindData( SQLSMALLINT _nOdbcType, break; case SQL_LONGVARCHAR: { - _pData = 0;//(void*)&rCol; sal_Int32 nLen = 0; if(_bUseWChar) nLen = sizeof(sal_Unicode) * ((::rtl::OUString*)_pValue)->getLength(); @@ -405,6 +404,7 @@ void OTools::bindValue( OConnection* _pConnection, } break; case SQL_LONGVARBINARY: { + _pData = (void*)(columnIndex); sal_Int32 nLen = 0; nLen = ((const ::com::sun::star::uno::Sequence< sal_Int8 > *)_pValue)->getLength(); *pLen = (SDWORD)SQL_LEN_DATA_AT_EXEC(nLen); @@ -412,6 +412,7 @@ void OTools::bindValue( OConnection* _pConnection, break; case SQL_LONGVARCHAR: { + _pData = (void*)(columnIndex); sal_Int32 nLen = 0; nLen = ((::rtl::OUString*)_pValue)->getLength(); *pLen = (SDWORD)SQL_LEN_DATA_AT_EXEC(nLen); |