summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/mork/MResultSet.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/mork/MResultSet.cxx')
-rw-r--r--connectivity/source/drivers/mork/MResultSet.cxx26
1 files changed, 3 insertions, 23 deletions
diff --git a/connectivity/source/drivers/mork/MResultSet.cxx b/connectivity/source/drivers/mork/MResultSet.cxx
index 49600e8bda3e..d8b7de04a0c1 100644
--- a/connectivity/source/drivers/mork/MResultSet.cxx
+++ b/connectivity/source/drivers/mork/MResultSet.cxx
@@ -384,8 +384,7 @@ sal_Bool SAL_CALL OResultSet::isAfterLast( )
SAL_WARN("connectivity.mork", "OResultSet::isAfterLast() NOT IMPLEMENTED!");
ResultSetEntryGuard aGuard( *this );
-// return sal_True;
- return m_nRowPos > currentRowCount() && MQueryHelper::queryComplete();
+ return m_nRowPos > currentRowCount();
}
sal_Bool SAL_CALL OResultSet::isFirst( )
@@ -401,7 +400,7 @@ sal_Bool SAL_CALL OResultSet::isLast( )
ResultSetEntryGuard aGuard( *this );
// return sal_True;
- return m_nRowPos == currentRowCount() && MQueryHelper::queryComplete();
+ return m_nRowPos == currentRowCount();
}
void SAL_CALL OResultSet::beforeFirst( )
@@ -1124,8 +1123,6 @@ void OResultSet::executeQuery()
// query to the mozilla addressbooks has returned all
// values.
- OSL_ENSURE( MQueryHelper::queryComplete(), "Query not complete!!");
-
OSortIndex aSortIndex(eKeyType,m_aOrderbyAscending);
#if OSL_DEBUG_LEVEL > 0
@@ -1305,25 +1302,8 @@ bool OResultSet::validRow( sal_uInt32 nRow)
{
sal_Int32 nNumberOfRecords = m_aQueryHelper.getResultCount();
- while ( nRow > static_cast<sal_uInt32>(nNumberOfRecords) && !MQueryHelper::queryComplete() ) {
- if (!m_aQueryHelper.checkRowAvailable( nRow ))
- {
- SAL_INFO(
- "connectivity.mork",
- "validRow(" << nRow << "): return False");
- return false;
- }
-
- if ( m_aQueryHelper.hadError() )
- {
- m_pStatement->getOwnConnection()->throwSQLException( m_aQueryHelper.getError(), *this );
- }
-
- nNumberOfRecords = m_aQueryHelper.getResultCount();
- }
-
if (( nRow == 0 ) ||
- ( nRow > static_cast<sal_uInt32>(nNumberOfRecords) && MQueryHelper::queryComplete()) ){
+ ( nRow > static_cast<sal_uInt32>(nNumberOfRecords)) ){
SAL_INFO("connectivity.mork", "validRow(" << nRow << "): return False");
return false;
}