- 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 simplify this, it would be nice, to have an accordant method in the database API that takes care of counting rows.
There was a discussion in the dev-list some months ago and Masi had the idea to introduce such a function in TYPO3_DB, read the thread here:
(issue imported from #M10091)