Tag: cws_src680_rowsetdel User: fs Date: 06/01/18 05:57:36 Modified: /dba/dbaccess/source/core/api/ RowSet.cxx
Log: #i55731# moveToInsertRow must also fire a RowCountChange - might happen in case the current row is deleted File Changes: Directory: /dba/dbaccess/source/core/api/ ========================================= File [changed]: RowSet.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/api/RowSet.cxx?r1=1.139.16.1&r2=1.139.16.2 Delta lines: +14 -8 -------------------- --- RowSet.cxx 16 Jan 2006 10:12:36 -0000 1.139.16.1 +++ RowSet.cxx 18 Jan 2006 13:57:33 -0000 1.139.16.2 @@ -4,9 +4,9 @@ * * $RCSfile: RowSet.cxx,v $ * - * $Revision: 1.139.16.1 $ + * $Revision: 1.139.16.2 $ * - * last change: $Author: fs $ $Date: 2006/01/16 10:12:36 $ + * last change: $Author: fs $ $Date: 2006/01/18 13:57:33 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1263,16 +1263,14 @@ ::osl::ResettableMutexGuard aGuard( *m_pMutex ); checkPositioningAllowed(); - if ((m_pCache->m_nPrivileges & Privilege::INSERT ) != Privilege::INSERT) - throwFunctionSequenceException(*this); - + if ( ( m_pCache->m_nPrivileges & Privilege::INSERT ) != Privilege::INSERT ) + throwSQLException( "No insert privileges", SQL_GENERAL_ERROR, *this ); - if(notifyAllListenersCursorBeforeMove(aGuard)) + if ( notifyAllListenersCursorBeforeMove( aGuard ) ) { // remember old value for fire ORowSetRow aOldValues; - // check before because the resultset could be empty if ( rowDeleted() ) { positionCache( MOVE_BACKWARD ); @@ -1282,7 +1280,12 @@ else positionCache( MOVE_NONE_REFRESH_ONLY ); - if ( !m_bBeforeFirst && !m_bAfterLast && m_pCache->m_aMatrixIter != m_pCache->getEnd() && m_pCache->m_aMatrixIter->isValid() ) + // check before because the resultset could be empty + if ( !m_bBeforeFirst + && !m_bAfterLast + && m_pCache->m_aMatrixIter != m_pCache->getEnd() + && m_pCache->m_aMatrixIter->isValid() + ) aOldValues = new ORowSetValueVector( m_pCache->m_aMatrixIter->getBody() ); const sal_Bool bNewState = m_bNew; @@ -1305,6 +1308,9 @@ // - IsNew if ( bNewState != m_bNew ) fireProperty( PROPERTY_ID_ISNEW, m_bNew, bNewState ); + +// // - RowCount/IsRowCountFinal +// fireRowcount(); } } // ------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
