Skip to content

🐛 Incorrect insertion of FragmentInterface parameters into WHERE IN queries #164

@iGrog

Description

@iGrog

No duplicates 🥲.

  • I have searched for a similar issue in our bug tracker and didn't find any solutions.

Database

MySQL

What happened?

Continue of #145

$products = $this->select()->andWhere('productGuid', 'IN', $productGuids)->fetchData();

with empty array $productGuids resulting the following sql:

AND `xxx`.`ProductGuid` IN() 

and database error is raised, as there is nothing in IN

Version

database 2.8.1
PHP 8.3

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions