User: rt Date: 2008-01-30 09:50:17+0000 Modified: dba/connectivity/source/drivers/mozab/MResultSet.cxx
Log: INTEGRATION: CWS dba24d (1.29.140); FILE MERGED 2007/11/12 10:49:25 fs 1.29.140.2: #i83519# (contributed by [EMAIL PROTECTED]) 2007/11/06 09:07:49 oj 1.29.140.1: #i51965# impl updateNumericObject and setObjectWithInfo File Changes: Directory: /dba/connectivity/source/drivers/mozab/ ================================================== File [changed]: MResultSet.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/mozab/MResultSet.cxx?r1=1.30&r2=1.31 Delta lines: +4 -8 ------------------- --- MResultSet.cxx 2008-01-14 17:43:24+0000 1.30 +++ MResultSet.cxx 2008-01-30 09:50:15+0000 1.31 @@ -1544,16 +1544,11 @@ if (m_CurrentRowCount < nMaxCardNumber) { sal_Int32 nKeyValue; - sal_Int32 nKeyPos; if ( (sal_Int32)m_pKeySet->capacity() < nMaxCardNumber ) m_pKeySet->reserve(nMaxCardNumber + 20 ); for (nKeyValue = m_CurrentRowCount+1; nKeyValue <= nMaxCardNumber; nKeyValue ++) - { - nKeyPos = m_pKeySet->size(); - m_pKeySet->insert( m_pKeySet->end(), sal_Int32() ); - (*m_pKeySet)[nKeyPos] = nKeyValue; - } + m_pKeySet->push_back( nKeyValue ); m_CurrentRowCount = nMaxCardNumber; } return sal_True; @@ -1862,9 +1857,10 @@ } // ------------------------------------------------------------------------- -void SAL_CALL OResultSet::updateNumericObject( sal_Int32 /*columnIndex*/, const Any& /*x*/, sal_Int32 /*scale*/ ) throw(SQLException, RuntimeException) +void SAL_CALL OResultSet::updateNumericObject( sal_Int32 columnIndex, const Any& x, sal_Int32 /*scale*/ ) throw(SQLException, RuntimeException) { - ::dbtools::throwFeatureNotImplementedException( "XRowUpdate::updateNumericObject", *this ); + if (!::dbtools::implUpdateObject(this, columnIndex, x)) + ::dbtools::throwGenericSQLException(::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Error updating object")),*this); } // XResultSetUpdate --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
