#102612Calling ExpressionBuilder::in and notIn with empty array or string causes SQL Error
Description
I would suggest to test for invalid data here – same as we do with inSet
Reviews 1
History 35
-
Lina Wolf commented 12/06/23, 10:46
-
Gerrit Code Review pushed patch set 1 for main to change 82132 status
NewUnder Review 12/06/23, 11:13 -
Gerrit Code Review pushed patch set 2 for main to change 82132 12/06/23, 13:20
-
Lina Wolf commented and changed status
Under ReviewResolved done0 %100 % 12/06/23, 15:55Applied in changeset commit:7c6b5cc7acff9fbcef13c2a28d5997b654201a28.
-
Benni Mack changed status
ResolvedClosed 07/09/24, 15:12
Current Exception is:
Doctrine\DBAL\Exception\SyntaxErrorException prototype object message => protected "An exception occurred while executing 'UPDATE `tt_content` SET `CType` = ? W HERE `uid` IN ()' with params ["xyz"]: You have an err or in your SQL syntax; check the manual that corresponds to your MariaDB ser ver version for the right syntax to use near ')' at line 1" (286 chars)There is no unit test for this case