[TYPO3-core] RFC: Bug #10099: Use TYPO3_DB->exec_SELECTcountRows() to determine the number of rows

Oliver Hader oliver at typo3.org
Mon Jan 12 15:31:15 CET 2009


This is a SVN patch request.

Problem:
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)

Solution:
To prevent hanging record sets here and simplify the code,
TYPO3_DB->exec_SELECTcountRows() is going to be used.

Bugtracker references:
http://bugs.typo3.org/view.php?id=10099

Branch: Trunk


olly
-- 
Oliver Hader
TYPO3 4.3 Release Manager
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 00010099.patch
Type: text/x-diff
Size: 33692 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090112/0ffc3abf/attachment-0001.patch 


More information about the TYPO3-team-core mailing list