Project

General

Profile

Actions

Task #68472

closed

Call sql_free_result() on DB-results when no longer needed

Added by Stefan Neufeind over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Code Cleanup
Target version:
-
Start date:
2015-07-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Currently we don't free the results in a lot of places. Everywhere one of the following functions is called, a result is returned - and as such a sql_free_result($res) is needed to be clean (save resources).

$ grep -E "return(.*)mysqli_result" typo3/sysext/core/Classes/Database/DatabaseConnection.php -A2 | grep function
public function exec_INSERTquery($table, $fields_values, $no_quote_fields = FALSE) {
public function exec_INSERTmultipleRows($table, array $fields, array $rows, $no_quote_fields = FALSE) {
public function exec_UPDATEquery($table, $where, $fields_values, $no_quote_fields = FALSE) {
public function exec_DELETEquery($table, $where) {
public function exec_SELECTquery($select_fields, $from_table, $where_clause, $groupBy = '', $orderBy = '', $limit = '') {
protected function query($query) {
public function sql_query($query) {
public function admin_query($query) {

Actions

Also available in: Atom PDF