Issue Bug Closed

#22114Argument 1 passed to ux_t3lib_DB::_quoteFieldNames() must be an array, string given

Xavier Perseguers 02/13/10, 10:26 updated 02/13/10, 16:24

Description

Some extensions use

DISTINCT

instead of

DISTINCT field

in their queries. This is valid for MySQL because it allows user not to care very much about standard SQL but it’s not for DBAL. Problem arises in method quoteFieldNames which lacks to check that the parsed list of fields could in fact be properly parsed before sending the array of fields to _quoteFieldNames which explicitly expects an array as argument. If an error was found, the content is a string containing an error message.

(issue imported from #M13528)

Reviews 0

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