Tag: cws_src680_dba24
User: fs      
Date: 05/02/10 08:55:24

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

Log:
 #i15113#
 - default m_nResultSetType to SCROLL_SENSITIVE
 - when executing, forward our ResultSetType/Concurrency to the statement

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.131&r2=1.131.4.1
Delta lines:  +11 -12
---------------------
--- RowSet.cxx  21 Jan 2005 17:02:14 -0000      1.131
+++ RowSet.cxx  10 Feb 2005 16:55:20 -0000      1.131.4.1
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: RowSet.cxx,v $
  *
- *  $Revision: 1.131 $
+ *  $Revision: 1.131.4.1 $
  *
- *  last change: $Author: kz $ $Date: 2005/01/21 17:02:14 $
+ *  last change: $Author: fs $ $Date: 2005/02/10 16:55:20 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -315,7 +315,7 @@
        ,m_pTables(NULL)
        ,m_bOwnConnection(sal_False)
 {
-       m_nResultSetType = ResultSetType::SCROLL_INSENSITIVE;
+       m_nResultSetType = ResultSetType::SCROLL_SENSITIVE;
        m_nResultSetConcurrency = ResultSetConcurrency::UPDATABLE;
        m_pMySelf = this;
        m_aActiveConnection <<= m_xActiveConnection;
@@ -1614,20 +1614,19 @@
                        {
                                Reference<XPropertySet> 
xProp(m_xStatement,UNO_QUERY);
 
+                // set the result set type and concurrency
                                try
                                {
-                                       
xProp->setPropertyValue(PROPERTY_USEBOOKMARKS,makeAny(sal_True));
-                                       
xProp->setPropertyValue(PROPERTY_RESULTSETTYPE,makeAny(ResultSetType::SCROLL_SENSITIVE));
-                                       
xProp->setPropertyValue(PROPERTY_RESULTSETCONCURRENCY,makeAny(ResultSetConcurrency::UPDATABLE));
-
+                    xProp->setPropertyValue( PROPERTY_USEBOOKMARKS, makeAny( 
sal_True ) );
+                    xProp->setPropertyValue( PROPERTY_RESULTSETTYPE, makeAny( 
m_nResultSetType ) );
+                    xProp->setPropertyValue( PROPERTY_RESULTSETCONCURRENCY, 
makeAny( m_nResultSetConcurrency ) );
                                }
                                catch(Exception&)
                                {
                                        // this exception doesn't matter here 
because when we catch an exception
-                                       // than the driver doesn't support this 
feature
+                                       // then the driver doesn't support this 
feature
                                }
-                               //      
xProp->setPropertyValue(PROPERTY_RESULTSETTYPE,makeAny(m_nResultSetType));
-                               //      
xProp->setPropertyValue(PROPERTY_RESULTSETCONCURRENCY,makeAny(m_nResultSetConcurrency));
+
                                //      if(m_nFetchDirection != 
FetchDirection::FORWARD)
                                        //      
xProp->setPropertyValue(PROPERTY_FETCHDIRECTION,makeAny((sal_Int32)m_nFetchDirection));
 




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

Reply via email to