#22115DISTINCT should not be used as a function
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.