Tag: cws_src680_dba24d
User: oj      
Date: 2007-11-27 08:08:42+0000
Modified:
   dba/connectivity/source/drivers/file/FResultSet.cxx

Log:
 #i57380# check correct select values

File Changes:

Directory: /dba/connectivity/source/drivers/file/
=================================================

File [changed]: FResultSet.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/file/FResultSet.cxx?r1=1.98&r2=1.98.20.1
Delta lines:  +10 -8
--------------------
--- FResultSet.cxx      2007-09-26 14:29:00+0000        1.98
+++ FResultSet.cxx      2007-11-27 08:08:40+0000        1.98.20.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: FResultSet.cxx,v $
  *
- *  $Revision: 1.98 $
+ *  $Revision: 1.98.20.1 $
  *
- *  last change: $Author: hr $ $Date: 2007/09/26 14:29:00 $
+ *  last change: $Author: oj $ $Date: 2007/11/27 08:08:40 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -1467,11 +1467,12 @@
                                                        if(!nWasAllwaysFound[j] 
&& nPos) // nur falls noch nicht nach dieser Row gesucht wurde
                                                        {
                                                                
ExecuteRow(IResultSetHelper::BOOKMARK,nPos,FALSE);
+                                   
m_pSQLAnalyzer->setSelectionEvaluationResult(m_aSelectRow,m_aColMapping);
                                                                { // copy row 
values
-                                                                       
OValueRefVector::iterator copyFrom = m_aRow->begin();
+                                                                       
OValueRefVector::iterator copyFrom = m_aSelectRow->begin();
                                                                        
OValueVector::iterator copyTo = aSearchRow->begin();
                                                                        for     
(       ++copyFrom,++copyTo;    // the first column is the bookmark column
-                                                                               
        copyFrom != m_aRow->end();
+                                                                               
        copyFrom != m_aSelectRow->end();
                                                                                
        ++copyFrom,++copyTo)
                                                                                
                *copyTo = *(*copyFrom);
                                                                        // 
*aSearchRow = *m_aRow;
@@ -1486,16 +1487,17 @@
                                                                        
ExecuteRow(IResultSetHelper::BOOKMARK,nKey,FALSE);
                                                                        
if(!nWasAllwaysFound[i])
                                                                        {
-                                                                               
OValueRefVector::iterator loopInRow = m_aRow->begin();
+                                           
m_pSQLAnalyzer->setSelectionEvaluationResult(m_aSelectRow,m_aColMapping);
+                                                                               
OValueRefVector::iterator loopInRow = m_aSelectRow->begin();
                                                                                
OValueVector::iterator existentInSearchRow = aSearchRow->begin();
                                                                                
for     (       ++loopInRow,++existentInSearchRow;      // the first column is 
the bookmark column
-                                                                               
                loopInRow != m_aRow->end();
+                                                                               
                loopInRow != m_aSelectRow->end();
                                                                                
                ++loopInRow,++existentInSearchRow)
                                                                                
{
                                                                                
        if ( (*loopInRow)->isBound() && !( *(*loopInRow) == 
*existentInSearchRow) )
                                                                                
                break;
                                                                                
}
-                                                                               
if(loopInRow == m_aRow->end())
+                                                                               
if(loopInRow == m_aSelectRow->end())
                                                                                
{
                                                                                
        // gefunden
                                                                                
        // Key an der Stelle 0 setzen.




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

Reply via email to