Project

General

Profile

Actions

Bug #60457

closed

Fix result value of DatabaseConnection::sql_free_result()

Added by Stefano Kowalke over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
Start date:
2014-07-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

    public function sql_free_result($res) {
        if ($this->debug_check_recordset($res) && is_object($res)) {
            return $res->free();
        } else {
            return FALSE;
        }
    }

In case of success the current implementation returns the result of $res->free(). Unfortunately free() doesn't return anything.

Solution:
Return TRUE in case of success

Actions

Also available in: Atom PDF