Fixed a performance issue in the logstream db and pdo drivers when using filters.

This commit is contained in:
Andre Lorbach 2008-11-19 14:18:08 +01:00
parent b2a1df9ca0
commit a0d52df81e
2 changed files with 10 additions and 0 deletions

View File

@ -1035,6 +1035,11 @@ class LogStreamDB extends LogStream {
$iBegin++;
}
// --- Check if results were found
if ( $iBegin == $this->_currentRecordNum )
return ERROR_NOMORERECORDS;
// ---
// Free Query ressources
mysql_free_result ($myquery);

View File

@ -1065,6 +1065,11 @@ class LogStreamPDO extends LogStream {
$iCount++;
}
// --- Check if results were found
if ( $iBegin == $this->_currentRecordNum )
return ERROR_NOMORERECORDS;
// ---
// return success state if reached this point!
return SUCCESS;
}