Actions
Bug #21758
closedAllow useless parentheses to be parsed
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)
Actions