User: rt Date: 2008-01-30 07:52:26+0000 Modified: dba/connectivity/source/drivers/file/FPreparedStatement.cxx
Log: INTEGRATION: CWS dba24d (1.40.20); FILE MERGED 2007/11/06 09:07:49 oj 1.40.20.1: #i51965# impl updateNumericObject and setObjectWithInfo File Changes: Directory: /dba/connectivity/source/drivers/file/ ================================================= File [changed]: FPreparedStatement.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/file/FPreparedStatement.cxx?r1=1.40&r2=1.41 Delta lines: +10 -1 -------------------- --- FPreparedStatement.cxx 2007-09-26 14:28:47+0000 1.40 +++ FPreparedStatement.cxx 2008-01-30 07:52:24+0000 1.41 @@ -349,7 +349,16 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, const Any& x, sal_Int32 sqlType, sal_Int32 scale ) throw(SQLException, RuntimeException) { + switch(sqlType) + { + case DataType::DECIMAL: + case DataType::NUMERIC: + setString(parameterIndex,::comphelper::getString(x)); + break; + default: ::dbtools::setObjectWithInfo(this,parameterIndex,x,sqlType,scale); + break; + } } // ------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
