Feature #19793

Use TYPO3_DB->exec_SELECTcountRows() to determine the number of rows

Added by Oliver Hader almost 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-01-11
Due date:
% Done:

0%

PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

Description

In the TYPO Core counting rows is/was implemented as the following:
  • get result set for a "COUNT" query, fetch row, free result set (not in all cases)
  • get result set for a regular table SELECT, get sql_num_rows, free result set (not in all cases again)

To prevent hanging record sets TYPO3_DB->exec_SELECTcountRows() should be used in future.

(issue imported from #M10099)

0010099_v3.patch View (31.7 KB) Administrator Admin, 2009-03-09 15:19


Related issues

Related to TYPO3 Core - Feature #19786: Integrate TYPO3_DB->exec_SELECTcountRows() Closed 2009-01-10

History

#1 Updated by Oliver Hader over 10 years ago

Committed to SVN Trunk (rev. 5161)

Also available in: Atom PDF