Project

General

Profile

Actions

Bug #21758

closed

Allow useless parentheses to be parsed

Added by Xavier Perseguers over 14 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2009-12-01
Due date:
% Done:

0%

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

Description

Sometimes, developers include useless parentheses in their WHERE clause. E.g.:

SELECT * FROM pages WHERE (uid=3)

This cannot be parsed as using a parenthesis basically tells the parser that a combined condition (with AND or OR) will be found.

It would make DBAL better if it could parse those queries anyway.

See related bugs for a few real-world examples.
(issue imported from #M12865)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #21752: t3lib/class.t3lib_page.php generates invalid queries for DBALClosedXavier Perseguers2009-11-30

Actions
Actions

Also available in: Atom PDF