[TYPO3-mvc] RFC: #13151 getObjectCountByQuery() should return an integer
Nikolas Hagelstein
nikolas.hagelstein at gmail.com
Fri Feb 18 12:19:43 CET 2011
Am 18.02.2011 11:59, schrieb Georg Ringer:
> But t3lib_db has following implementation:
> --------------
> function sql_num_rows($res) {
> if ($this->debug_check_recordset($res)) {
> return mysql_num_rows($res);
> } else {
> return FALSE;
> }
> }
> --------------
Yes right, but exbase throws an exception (see checkSQLErrors) if there
is an sql_error therefor "false" will never become true ;>:
$this->checkSqlErrors($statement);
$count = $this->databaseHandle->sql_num_rows($result);
Cheers,
Nikolas
More information about the TYPO3-project-typo3v4mvc
mailing list