Tag: cws_src680_dba24a
User: fs      
Date: 2007-07-23 11:53:16+0000
Modified:
   dba/dbaccess/source/core/api/SingleSelectQueryComposer.cxx

Log:
 setSingleAdditiveClause: don't do anything if the clause didn't change

File Changes:

Directory: /dba/dbaccess/source/core/api/
=========================================

File [changed]: SingleSelectQueryComposer.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/api/SingleSelectQueryComposer.cxx?r1=1.23&r2=1.23.54.1
Delta lines:  +7 -3
-------------------
--- SingleSelectQueryComposer.cxx       2007-01-15 14:30:20+0000        1.23
+++ SingleSelectQueryComposer.cxx       2007-07-23 11:53:14+0000        
1.23.54.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: SingleSelectQueryComposer.cxx,v $
  *
- *  $Revision: 1.23 $
+ *  $Revision: 1.23.54.1 $
  *
- *  last change: $Author: vg $ $Date: 2007/01/15 14:30:20 $
+ *  last change: $Author: fs $ $Date: 2007/07/23 11:53:14 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -638,6 +638,10 @@
        ::connectivity::checkDisposed(OSubComponent::rBHelper.bDisposed);
        ::osl::MutexGuard aGuard( m_aMutex );
 
+    // if nothing is changed, do nothing
+    if ( getSQLPart( _ePart, m_aAdditiveIterator, sal_False ) == _rClause )
+        return;
+
     // collect the 4 single parts as they're currently set
     ::std::vector< ::rtl::OUString > aClauses;
     aClauses.reserve( (size_t)SQLPartCount );




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

Reply via email to