{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/4784","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/4784/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/4784/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/4784/events","html_url":"https://github.com/sequelize/sequelize/issues/4784","id":114217418,"number":4784,"title":"Sequelize doesn't escape column names in postgres  ","user":{"login":"niksrc","id":12221985,"avatar_url":"https://avatars.githubusercontent.com/u/12221985?v=3","gravatar_id":"","url":"https://api.github.com/users/niksrc","html_url":"https://github.com/niksrc","followers_url":"https://api.github.com/users/niksrc/followers","following_url":"https://api.github.com/users/niksrc/following{/other_user}","gists_url":"https://api.github.com/users/niksrc/gists{/gist_id}","starred_url":"https://api.github.com/users/niksrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niksrc/subscriptions","organizations_url":"https://api.github.com/users/niksrc/orgs","repos_url":"https://api.github.com/users/niksrc/repos","events_url":"https://api.github.com/users/niksrc/events{/privacy}","received_events_url":"https://api.github.com/users/niksrc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-30T07:33:59Z","updated_at":"2015-10-30T13:01:01Z","closed_at":null,"body":"```\r\nCatalog.update({\r\n      order: 'order + 1'\r\n},{\r\n  where:{\r\n    order:{\r\n     $between :[2,5] \r\n   }\r\n  }\r\n}).then(function(response){\r\n      console.log(response)\r\n});\r\n\r\n```\r\n\r\nThis gives a sequelizeDatabaseError near or at order. "},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/152516878","html_url":"https://github.com/sequelize/sequelize/issues/4784#issuecomment-152516878","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/4784","id":152516878,"user":{"login":"mickhansen","id":699049,"avatar_url":"https://avatars.githubusercontent.com/u/699049?v=3","gravatar_id":"","url":"https://api.github.com/users/mickhansen","html_url":"https://github.com/mickhansen","followers_url":"https://api.github.com/users/mickhansen/followers","following_url":"https://api.github.com/users/mickhansen/following{/other_user}","gists_url":"https://api.github.com/users/mickhansen/gists{/gist_id}","starred_url":"https://api.github.com/users/mickhansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickhansen/subscriptions","organizations_url":"https://api.github.com/users/mickhansen/orgs","repos_url":"https://api.github.com/users/mickhansen/repos","events_url":"https://api.github.com/users/mickhansen/events{/privacy}","received_events_url":"https://api.github.com/users/mickhansen/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T13:01:01Z","updated_at":"2015-10-30T13:01:01Z","body":"Have you taken a look at the SQL query?\r\nIn this case you're actually telling Sequeliz you want to update the `order` column to a string, which it likely doesn't support."}}