Project

General

Profile

Actions

Bug #60457

closed

Fix result value of DatabaseConnection::sql_free_result()

Added by Stefano Kowalke over 9 years ago. Updated over 5 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 #1

Updated by Markus Klein over 9 years ago

  • Status changed from New to Under Review
Actions #2

Updated by Stefano Kowalke over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #3

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF