[TYPO3-mvc] Passing empty array to query->equals

Jochen Rau jochen.rau at typoplanet.de
Wed Feb 3 12:36:54 CET 2010


Hi.

On 03.02.10 10:47, Thomas Heilmann wrote:
> Hi,
>
> with revision 1587 support for arrays as query variables has been
> implemented (which is great). At the moment, passing an empty array to
> the equals method results in a sql exception. I would suggest to add a
> check if the array is empty before creating the sql query. Do you think
> it would be better to throw an exception or to create a well formed sql
> query that returns zero rows?

That's definitly a bug. we have to always create well formed SQL at this 
pint, regardless of the input.

Could you please file an issue so we can keep track of this?

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list