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

Query Generator should ignore empty where object #3113

Closed
gorangajic opened this Issue Feb 12, 2015 · 2 comments

Comments

2 participants
@gorangajic
Contributor

gorangajic commented Feb 12, 2015

User.update({name: 'bob'}, {where: {}});

Produce query like this

UPDATE "Users" SET "name"="bob","updatedAt"='2015-02-11 11:54:48.880 +00:00' WHERE
#2340

@gorangajic

This comment has been minimized.

Contributor

gorangajic commented Feb 12, 2015

Thanks 😄

@mickhansen

This comment has been minimized.

Contributor

mickhansen commented Feb 12, 2015

Fixed in sequelize@2.0.2

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