Issue Bug Closed

#22115DISTINCT should not be used as a function

Xavier Perseguers 02/13/10, 11:09 updated 10/02/18, 12:25

Description

While working on #22114, I searched in Core if DISTINCT keyword in query was sometimes wrongly written as a function:

SELECT DISTINCT

instead of the valid definition:

SELECT DISTINCT field

which happens quite often in extensions and is not detected as long as DBAL is not used as MySQL silently understands it anyway.

(issue imported from #M13529)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.