Skip to content

Commit

Permalink
tweak(Tinebase/Import/Db): closeCursor() after fetching data rows
Browse files Browse the repository at this point in the history
  • Loading branch information
pschuele committed Sep 19, 2024
1 parent 80eec31 commit 61bfda7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tine20/Tinebase/Import/Db/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function import(): array
$select = $this->_getSelect(++$pageNumber, $pageCount);
$stmt = $select->query();
$rows = $stmt->fetchAll(Zend_Db::FETCH_ASSOC);
$stmt->closeCursor();
if (Tinebase_Core::isLogLevel(Zend_Log::INFO)) Tinebase_Core::getLogger()->info(__METHOD__ . '::' . __LINE__
. ' fetched ' . count($rows) . ' rows / pagenumber: ' . $pageNumber);

Expand Down

0 comments on commit 61bfda7

Please sign in to comment.