{"action":"closed","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/3849","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/3849/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/3849/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/3849/events","html_url":"https://github.com/sequelize/sequelize/issues/3849","id":83654825,"number":3849,"title":"Saving model after setting a boolean property causes only updatedAt to be saved","user":{"login":"KTachyon","id":1596736,"avatar_url":"https://avatars.githubusercontent.com/u/1596736?v=3","gravatar_id":"","url":"https://api.github.com/users/KTachyon","html_url":"https://github.com/KTachyon","followers_url":"https://api.github.com/users/KTachyon/followers","following_url":"https://api.github.com/users/KTachyon/following{/other_user}","gists_url":"https://api.github.com/users/KTachyon/gists{/gist_id}","starred_url":"https://api.github.com/users/KTachyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KTachyon/subscriptions","organizations_url":"https://api.github.com/users/KTachyon/orgs","repos_url":"https://api.github.com/users/KTachyon/repos","events_url":"https://api.github.com/users/KTachyon/events{/privacy}","received_events_url":"https://api.github.com/users/KTachyon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-01T19:26:30Z","updated_at":"2015-06-10T07:47:13Z","closed_at":"2015-06-10T07:47:13Z","body":"I'm trying to update a boolean property for a model and when I call save(), the only column being updated is the updatedAt column. I can get it to save by explicitly stating that I want that field to be saved:\r\n\r\nCode:\r\n```\r\npoi.set('inside', !!value);\r\nreturn poi.save({ transaction : context.getTransaction() });\r\n```\r\n\r\nResulting query:\r\n```\r\nUPDATE \"Pois\" SET \"updatedAt\"='2015-06-01 19:23:32.946 +00:00' WHERE \"id\" = '90498c3a-e586-45ca-ac0d-752d648d629d'\r\n```\r\n\r\n\r\nQuery with field:\r\n```\r\npoi.set('inside', !!value);\r\nreturn poi.save({ fields : ['inside'], transaction : context.getTransaction() });\r\n```\r\n\r\nResulting query:\r\n```\r\nUPDATE \"Pois\" SET \"inside\"=false,\"updatedAt\"='2015-06-01 19:25:23.663 +00:00' WHERE \"id\" = '90498c3a-e586-45ca-ac0d-752d648d629d'\r\n```\r\n\r\n\r\nEDIT: It happens even if the value of the property is being set to true. The initial value of the property is NULL."}}