Project

General

Profile

Actions

Bug #21758

closed

Allow useless parentheses to be parsed

Added by Xavier Perseguers almost 15 years ago. Updated about 11 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 #1

Updated by Alexander Opitz over 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)
  • TYPO3 Version set to 4.3

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #2

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

Actions

Also available in: Atom PDF