User: rt Date: 2008-01-30 07:49:48+0000 Modified: dba/connectivity/source/drivers/ado/APreparedStatement.cxx
Log: INTEGRATION: CWS dba24d (1.24.20); FILE MERGED 2007/11/06 09:07:49 oj 1.24.20.1: #i51965# impl updateNumericObject and setObjectWithInfo File Changes: Directory: /dba/connectivity/source/drivers/ado/ ================================================ File [changed]: APreparedStatement.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/ado/APreparedStatement.cxx?r1=1.24&r2=1.25 Delta lines: +12 -3 -------------------- --- APreparedStatement.cxx 2007-09-26 14:28:22+0000 1.24 +++ APreparedStatement.cxx 2008-01-30 07:49:46+0000 1.25 @@ -66,7 +66,7 @@ #ifndef _DBHELPER_DBEXCEPTION_HXX_ #include "connectivity/dbexception.hxx" #endif - +#include "connectivity/dbtools.hxx" #define CHECK_RETURN(x) \ if(!x) \ @@ -436,9 +436,18 @@ } // ------------------------------------------------------------------------- -void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 /*parameterIndex*/, const Any& /*x*/, sal_Int32 /*sqlType*/, sal_Int32 /*scale*/ ) throw(SQLException, RuntimeException) +void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, const Any& x, sal_Int32 sqlType, sal_Int32 scale ) throw(SQLException, RuntimeException) { - ::dbtools::throwFeatureNotImplementedException( "XRowUpdate::setObjectWithInfo", *this ); + 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]
