-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
WHERE expr IN (...) Broken for empty list #3105
Copy link
Copy link
Closed
Labels
regressionFor issues and PRs. A bug that does not happen in an earlier version of Sequelize.For issues and PRs. A bug that does not happen in an earlier version of Sequelize.type: bugDEPRECATED: replace with the "bug" issue typeDEPRECATED: replace with the "bug" issue type
Description
Worked in: 2.0.0rc8
Broken in: 2.0.0, 2.0.1
// Note that list is empty
var list = [];
model.findAll(... {where: {col: list}})...produces in 2.0.0rc8 with MySQL:
`Model`.`col` IN (NULL)produces in 2.0.0-2.0.1 with MySQL:
`Model`.`col` IN ()Which breaks the MySQL-syntax.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
regressionFor issues and PRs. A bug that does not happen in an earlier version of Sequelize.For issues and PRs. A bug that does not happen in an earlier version of Sequelize.type: bugDEPRECATED: replace with the "bug" issue typeDEPRECATED: replace with the "bug" issue type