Tag: cws_src680_dba201b
User: oj      
Date: 05/07/26 03:50:35

Modified:
 /dba/dbaccess/source/core/api/
  RowSet.cxx

Log:
 #i52440# throw exception when only select is allowed and an update or insert 
is executing

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.133.44.1&r2=1.133.44.2
Delta lines:  +4 -4
-------------------
--- RowSet.cxx  26 Jul 2005 10:48:19 -0000      1.133.44.1
+++ RowSet.cxx  26 Jul 2005 10:50:32 -0000      1.133.44.2
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: RowSet.cxx,v $
  *
- *  $Revision: 1.133.44.1 $
+ *  $Revision: 1.133.44.2 $
  *
- *  last change: $Author: oj $ $Date: 2005/07/26 10:48:19 $
+ *  last change: $Author: oj $ $Date: 2005/07/26 10:50:32 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -1088,7 +1088,7 @@
        ::connectivity::checkDisposed(ORowSet_BASE1::rBHelper.bDisposed);
        // not allowed when standing on insert row
        ::osl::ResettableMutexGuard aGuard( *m_pMutex );
-       if ( !m_pCache || m_nResultSetConcurrency == 
ResultSetConcurrency::READ_ONLY || m_bNew || ((m_pCache->m_nPrivileges & 
Privilege::INSERT ) != Privilege::INSERT) )
+       if ( !m_pCache || m_nResultSetConcurrency == 
ResultSetConcurrency::READ_ONLY || m_bNew || ((m_pCache->m_nPrivileges & 
Privilege::UPDATE ) != Privilege::UPDATE) )
                throwFunctionSequenceException(*this);
 
        if(m_bModified)
@@ -1132,7 +1132,7 @@
        // after the last row
        // stands on the insert row
        // the concurrency is read only
-       if(!m_pCache || m_bBeforeFirst || m_bAfterLast || m_bNew || 
m_nResultSetConcurrency == ResultSetConcurrency::READ_ONLY)
+       if(!m_pCache || m_bBeforeFirst || m_bAfterLast || m_bNew || 
m_nResultSetConcurrency == ResultSetConcurrency::READ_ONLY || 
((m_pCache->m_nPrivileges & Privilege::DELETE ) != Privilege::DELETE))
                throwFunctionSequenceException(*this);
 
        // this call position the cache indirect




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to