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
.changed() detects value as changed when set from null to null. #3812
Comments
instance.js has a primitives array and only compares values that match it. Since null is a primitive it should be included as well. However, typeof null returns object which seems to be bug in ecmascript. Will probably need to explicitly check for null. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null |
Thank you for the fast response. I can confirm that it fixes the issue. |
Fix two minor issues. Closes sequelize#3812 and sequelize#3770
If the value of an instance was
null
and is.set()
tonull
, Sequelize detects the value as changed.Using sequelize 3.1.1.
The text was updated successfully, but these errors were encountered: