{"action":"closed","issue":{"url":"https://api.github.com/repos/felixge/node-mysql/issues/1079","labels_url":"https://api.github.com/repos/felixge/node-mysql/issues/1079/labels{/name}","comments_url":"https://api.github.com/repos/felixge/node-mysql/issues/1079/comments","events_url":"https://api.github.com/repos/felixge/node-mysql/issues/1079/events","html_url":"https://github.com/felixge/node-mysql/issues/1079","id":73956170,"number":1079,"title":"Convert array in object to IN (..) instead of = ...","user":{"login":"AdriVanHoudt","id":2361826,"avatar_url":"https://avatars.githubusercontent.com/u/2361826?v=3","gravatar_id":"","url":"https://api.github.com/users/AdriVanHoudt","html_url":"https://github.com/AdriVanHoudt","followers_url":"https://api.github.com/users/AdriVanHoudt/followers","following_url":"https://api.github.com/users/AdriVanHoudt/following{/other_user}","gists_url":"https://api.github.com/users/AdriVanHoudt/gists{/gist_id}","starred_url":"https://api.github.com/users/AdriVanHoudt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdriVanHoudt/subscriptions","organizations_url":"https://api.github.com/users/AdriVanHoudt/orgs","repos_url":"https://api.github.com/users/AdriVanHoudt/repos","events_url":"https://api.github.com/users/AdriVanHoudt/events{/privacy}","received_events_url":"https://api.github.com/users/AdriVanHoudt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/felixge/node-mysql/labels/help%20wanted","name":"help wanted","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-07T11:46:43Z","updated_at":"2015-09-28T08:50:58Z","closed_at":"2015-09-28T08:50:58Z","body":"When doing \r\n`format('update tableA set ? where ?', [{ columnA: 1 }, { columnB: [4,5] }])`\r\n\r\nThe result is \r\n`update tableA set columnA = 1 where columnB = 4, 5` \r\nwhich is not desirable.\r\n\r\nWould it be possible to detect arrays and convert them into\r\n `update tableA set columnA = 1 where columnB IN (4, 5)`\r\n instead?"}}