New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WHERE expr IN (...) Broken for empty list #3105

Closed
hacker112 opened this Issue Feb 11, 2015 · 1 comment

Comments

2 participants
@hacker112
Contributor

hacker112 commented Feb 11, 2015

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.

@mickhansen

This comment has been minimized.

Contributor

mickhansen commented Feb 17, 2015

Fixed in sequelize@2.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment