{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/3819","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/3819/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/3819/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/3819/events","html_url":"https://github.com/sequelize/sequelize/issues/3819","id":81739751,"number":3819,"title":"Inserting data into an array field in Sequelize+Postgres","user":{"login":"manjugit","id":10781205,"avatar_url":"https://avatars.githubusercontent.com/u/10781205?v=3","gravatar_id":"","url":"https://api.github.com/users/manjugit","html_url":"https://github.com/manjugit","followers_url":"https://api.github.com/users/manjugit/followers","following_url":"https://api.github.com/users/manjugit/following{/other_user}","gists_url":"https://api.github.com/users/manjugit/gists{/gist_id}","starred_url":"https://api.github.com/users/manjugit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manjugit/subscriptions","organizations_url":"https://api.github.com/users/manjugit/orgs","repos_url":"https://api.github.com/users/manjugit/repos","events_url":"https://api.github.com/users/manjugit/events{/privacy}","received_events_url":"https://api.github.com/users/manjugit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sequelize/sequelize/labels/bug","name":"bug","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-28T03:36:59Z","updated_at":"2015-05-28T06:50:26Z","closed_at":null,"body":"Hi,\r\n\r\nI guess my question is not an issue/bug, and sorry if this is not a place to get clarifications to questions/problems as in a mailing list. \r\n\r\nI have a simple task of inserting data into an array field: Model.create{id_list: [1, 2, 3]}. For some reason id_list is always NULL. \r\n\r\nI also tried ARRAY[1, 2, 3], '{1,2,3}, etc., but Sequelize says 'ARRAY' is undefined, '{' is unexpected, etc. \r\n\r\nThe field is defined as follows in its definition:\r\n\r\nid_list: {type: DataTypes.ARRAY(DataTypes.INTEGER), defaultValue: null}\r\n\r\nPlease note that I am able to insert/update all the other non-array fields of the Model without any problem.\r\n\r\nThanks!\r\nManju"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/106198486","html_url":"https://github.com/sequelize/sequelize/issues/3819#issuecomment-106198486","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/3819","id":106198486,"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-05-28T06:50:26Z","updated_at":"2015-05-28T06:50:26Z","body":"It should definitely just work like that."}}