Project

General

Profile

Actions

Bug #56208

closed

Remove redundant method admin_query or sql_query

Added by Stefano Kowalke about 10 years ago. Updated almost 9 years ago.

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

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Both method doing exactly the same thing:

    public function sql_query($query) {
        $res = $this->query($query);
        if ($this->debugOutput) {
            $this->debug('sql_query', $query);
        }
        return $res;
    }

    public function admin_query($query) {
        $res = $this->query($query);
        if ($this->debugOutput) {
            $this->debug('admin_query', $query);
        }
        return $res;

Can't see the reason why we need both methods. I would prefer to remove the sql_query().

Actions

Also available in: Atom PDF