{"action":"created","comment":{"url":"https://api.github.com/repos/sequelize/sequelize/pulls/comments/34086017","id":34086017,"diff_hunk":"@@ -514,7 +514,19 @@ AbstractQuery.prototype.isUpdateQuery = function() {\n \n AbstractQuery.prototype.handleSelectQuery = function(results) {\n   var result = null;\n-\n+  // Map raw fields to arbitrary names if a mapping is provided\n+  if (this.options.fieldMap) {","path":"lib/dialects/abstract/query.js","position":6,"original_position":6,"commit_id":"dd779d04c177c2775e1140d8c406cb51695bfc90","original_commit_id":"dd779d04c177c2775e1140d8c406cb51695bfc90","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},"body":"Hmm no, no way to know, that is a bit of a problem since actually in this case you don't want a raw result.","created_at":"2015-07-07T20:27:03Z","updated_at":"2015-07-07T20:27:03Z","html_url":"https://github.com/sequelize/sequelize/pull/3995#discussion_r34086017","pull_request_url":"https://api.github.com/repos/sequelize/sequelize/pulls/3995","_links":{"self":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/comments/34086017"},"html":{"href":"https://github.com/sequelize/sequelize/pull/3995#discussion_r34086017"},"pull_request":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/3995"}}},"pull_request":{"url":"https://api.github.com/repos/sequelize/sequelize/pulls/3995","id":38396296,"html_url":"https://github.com/sequelize/sequelize/pull/3995","diff_url":"https://github.com/sequelize/sequelize/pull/3995.diff","patch_url":"https://github.com/sequelize/sequelize/pull/3995.patch","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/3995","number":3995,"state":"open","locked":false,"title":"Map raw field names to attributes.","user":{"login":"sankethkatta","id":1448311,"avatar_url":"https://avatars.githubusercontent.com/u/1448311?v=3","gravatar_id":"","url":"https://api.github.com/users/sankethkatta","html_url":"https://github.com/sankethkatta","followers_url":"https://api.github.com/users/sankethkatta/followers","following_url":"https://api.github.com/users/sankethkatta/following{/other_user}","gists_url":"https://api.github.com/users/sankethkatta/gists{/gist_id}","starred_url":"https://api.github.com/users/sankethkatta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sankethkatta/subscriptions","organizations_url":"https://api.github.com/users/sankethkatta/orgs","repos_url":"https://api.github.com/users/sankethkatta/repos","events_url":"https://api.github.com/users/sankethkatta/events{/privacy}","received_events_url":"https://api.github.com/users/sankethkatta/received_events","type":"User","site_admin":false},"body":"Add feature #3714. \r\n\r\nThis also allows the `returning: true` [option](https://github.com/sequelize/sequelize/blob/2c4a9f3cf9887fb33c31e397e758dd4aa3374d01/lib/model.js#L2064) for `update` in postgres to work properly. Currently it [generates](https://github.com/sequelize/sequelize/blob/e948dc8fdc6be90c54441e091472a0c5d72899ce/lib/dialects/abstract/query-generator.js#L212) out `RETURNING *`, which faces the same problem as described with raw queries in #3714.","created_at":"2015-06-24T00:10:12Z","updated_at":"2015-07-07T20:27:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcd8615e350c28df470d9039070963e0b966969a","assignee":{"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},"milestone":null,"commits_url":"https://api.github.com/repos/sequelize/sequelize/pulls/3995/commits","review_comments_url":"https://api.github.com/repos/sequelize/sequelize/pulls/3995/comments","review_comment_url":"https://api.github.com/repos/sequelize/sequelize/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/3995/comments","statuses_url":"https://api.github.com/repos/sequelize/sequelize/statuses/dd779d04c177c2775e1140d8c406cb51695bfc90","head":{"label":"sankethkatta:master","ref":"master","sha":"dd779d04c177c2775e1140d8c406cb51695bfc90","user":{"login":"sankethkatta","id":1448311,"avatar_url":"https://avatars.githubusercontent.com/u/1448311?v=3","gravatar_id":"","url":"https://api.github.com/users/sankethkatta","html_url":"https://github.com/sankethkatta","followers_url":"https://api.github.com/users/sankethkatta/followers","following_url":"https://api.github.com/users/sankethkatta/following{/other_user}","gists_url":"https://api.github.com/users/sankethkatta/gists{/gist_id}","starred_url":"https://api.github.com/users/sankethkatta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sankethkatta/subscriptions","organizations_url":"https://api.github.com/users/sankethkatta/orgs","repos_url":"https://api.github.com/users/sankethkatta/repos","events_url":"https://api.github.com/users/sankethkatta/events{/privacy}","received_events_url":"https://api.github.com/users/sankethkatta/received_events","type":"User","site_admin":false},"repo":{"id":36769404,"name":"sequelize","full_name":"sankethkatta/sequelize","owner":{"login":"sankethkatta","id":1448311,"avatar_url":"https://avatars.githubusercontent.com/u/1448311?v=3","gravatar_id":"","url":"https://api.github.com/users/sankethkatta","html_url":"https://github.com/sankethkatta","followers_url":"https://api.github.com/users/sankethkatta/followers","following_url":"https://api.github.com/users/sankethkatta/following{/other_user}","gists_url":"https://api.github.com/users/sankethkatta/gists{/gist_id}","starred_url":"https://api.github.com/users/sankethkatta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sankethkatta/subscriptions","organizations_url":"https://api.github.com/users/sankethkatta/orgs","repos_url":"https://api.github.com/users/sankethkatta/repos","events_url":"https://api.github.com/users/sankethkatta/events{/privacy}","received_events_url":"https://api.github.com/users/sankethkatta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sankethkatta/sequelize","description":"Sequelize is an easy-to-use multi sql dialect ORM for Node.js & io.js. It currently supports MySQL, MariaDB, SQLite, PostgreSQL and MSSQL.","fork":true,"url":"https://api.github.com/repos/sankethkatta/sequelize","forks_url":"https://api.github.com/repos/sankethkatta/sequelize/forks","keys_url":"https://api.github.com/repos/sankethkatta/sequelize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sankethkatta/sequelize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sankethkatta/sequelize/teams","hooks_url":"https://api.github.com/repos/sankethkatta/sequelize/hooks","issue_events_url":"https://api.github.com/repos/sankethkatta/sequelize/issues/events{/number}","events_url":"https://api.github.com/repos/sankethkatta/sequelize/events","assignees_url":"https://api.github.com/repos/sankethkatta/sequelize/assignees{/user}","branches_url":"https://api.github.com/repos/sankethkatta/sequelize/branches{/branch}","tags_url":"https://api.github.com/repos/sankethkatta/sequelize/tags","blobs_url":"https://api.github.com/repos/sankethkatta/sequelize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sankethkatta/sequelize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sankethkatta/sequelize/git/refs{/sha}","trees_url":"https://api.github.com/repos/sankethkatta/sequelize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sankethkatta/sequelize/statuses/{sha}","languages_url":"https://api.github.com/repos/sankethkatta/sequelize/languages","stargazers_url":"https://api.github.com/repos/sankethkatta/sequelize/stargazers","contributors_url":"https://api.github.com/repos/sankethkatta/sequelize/contributors","subscribers_url":"https://api.github.com/repos/sankethkatta/sequelize/subscribers","subscription_url":"https://api.github.com/repos/sankethkatta/sequelize/subscription","commits_url":"https://api.github.com/repos/sankethkatta/sequelize/commits{/sha}","git_commits_url":"https://api.github.com/repos/sankethkatta/sequelize/git/commits{/sha}","comments_url":"https://api.github.com/repos/sankethkatta/sequelize/comments{/number}","issue_comment_url":"https://api.github.com/repos/sankethkatta/sequelize/issues/comments{/number}","contents_url":"https://api.github.com/repos/sankethkatta/sequelize/contents/{+path}","compare_url":"https://api.github.com/repos/sankethkatta/sequelize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sankethkatta/sequelize/merges","archive_url":"https://api.github.com/repos/sankethkatta/sequelize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sankethkatta/sequelize/downloads","issues_url":"https://api.github.com/repos/sankethkatta/sequelize/issues{/number}","pulls_url":"https://api.github.com/repos/sankethkatta/sequelize/pulls{/number}","milestones_url":"https://api.github.com/repos/sankethkatta/sequelize/milestones{/number}","notifications_url":"https://api.github.com/repos/sankethkatta/sequelize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sankethkatta/sequelize/labels{/name}","releases_url":"https://api.github.com/repos/sankethkatta/sequelize/releases{/id}","created_at":"2015-06-03T00:15:45Z","updated_at":"2015-06-03T00:15:47Z","pushed_at":"2015-07-06T21:44:08Z","git_url":"git://github.com/sankethkatta/sequelize.git","ssh_url":"git@github.com:sankethkatta/sequelize.git","clone_url":"https://github.com/sankethkatta/sequelize.git","svn_url":"https://github.com/sankethkatta/sequelize","homepage":"http://sequelizejs.com","size":15062,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sequelize:master","ref":"master","sha":"4a072a5dec23478c13febdc28c66b07cb66a2eef","user":{"login":"sequelize","id":3591786,"avatar_url":"https://avatars.githubusercontent.com/u/3591786?v=3","gravatar_id":"","url":"https://api.github.com/users/sequelize","html_url":"https://github.com/sequelize","followers_url":"https://api.github.com/users/sequelize/followers","following_url":"https://api.github.com/users/sequelize/following{/other_user}","gists_url":"https://api.github.com/users/sequelize/gists{/gist_id}","starred_url":"https://api.github.com/users/sequelize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sequelize/subscriptions","organizations_url":"https://api.github.com/users/sequelize/orgs","repos_url":"https://api.github.com/users/sequelize/repos","events_url":"https://api.github.com/users/sequelize/events{/privacy}","received_events_url":"https://api.github.com/users/sequelize/received_events","type":"Organization","site_admin":false},"repo":{"id":790359,"name":"sequelize","full_name":"sequelize/sequelize","owner":{"login":"sequelize","id":3591786,"avatar_url":"https://avatars.githubusercontent.com/u/3591786?v=3","gravatar_id":"","url":"https://api.github.com/users/sequelize","html_url":"https://github.com/sequelize","followers_url":"https://api.github.com/users/sequelize/followers","following_url":"https://api.github.com/users/sequelize/following{/other_user}","gists_url":"https://api.github.com/users/sequelize/gists{/gist_id}","starred_url":"https://api.github.com/users/sequelize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sequelize/subscriptions","organizations_url":"https://api.github.com/users/sequelize/orgs","repos_url":"https://api.github.com/users/sequelize/repos","events_url":"https://api.github.com/users/sequelize/events{/privacy}","received_events_url":"https://api.github.com/users/sequelize/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sequelize/sequelize","description":"Sequelize is an easy-to-use multi sql dialect ORM for Node.js & io.js. It currently supports MySQL, MariaDB, SQLite, PostgreSQL and MSSQL.","fork":false,"url":"https://api.github.com/repos/sequelize/sequelize","forks_url":"https://api.github.com/repos/sequelize/sequelize/forks","keys_url":"https://api.github.com/repos/sequelize/sequelize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sequelize/sequelize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sequelize/sequelize/teams","hooks_url":"https://api.github.com/repos/sequelize/sequelize/hooks","issue_events_url":"https://api.github.com/repos/sequelize/sequelize/issues/events{/number}","events_url":"https://api.github.com/repos/sequelize/sequelize/events","assignees_url":"https://api.github.com/repos/sequelize/sequelize/assignees{/user}","branches_url":"https://api.github.com/repos/sequelize/sequelize/branches{/branch}","tags_url":"https://api.github.com/repos/sequelize/sequelize/tags","blobs_url":"https://api.github.com/repos/sequelize/sequelize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sequelize/sequelize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sequelize/sequelize/git/refs{/sha}","trees_url":"https://api.github.com/repos/sequelize/sequelize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sequelize/sequelize/statuses/{sha}","languages_url":"https://api.github.com/repos/sequelize/sequelize/languages","stargazers_url":"https://api.github.com/repos/sequelize/sequelize/stargazers","contributors_url":"https://api.github.com/repos/sequelize/sequelize/contributors","subscribers_url":"https://api.github.com/repos/sequelize/sequelize/subscribers","subscription_url":"https://api.github.com/repos/sequelize/sequelize/subscription","commits_url":"https://api.github.com/repos/sequelize/sequelize/commits{/sha}","git_commits_url":"https://api.github.com/repos/sequelize/sequelize/git/commits{/sha}","comments_url":"https://api.github.com/repos/sequelize/sequelize/comments{/number}","issue_comment_url":"https://api.github.com/repos/sequelize/sequelize/issues/comments{/number}","contents_url":"https://api.github.com/repos/sequelize/sequelize/contents/{+path}","compare_url":"https://api.github.com/repos/sequelize/sequelize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sequelize/sequelize/merges","archive_url":"https://api.github.com/repos/sequelize/sequelize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sequelize/sequelize/downloads","issues_url":"https://api.github.com/repos/sequelize/sequelize/issues{/number}","pulls_url":"https://api.github.com/repos/sequelize/sequelize/pulls{/number}","milestones_url":"https://api.github.com/repos/sequelize/sequelize/milestones{/number}","notifications_url":"https://api.github.com/repos/sequelize/sequelize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sequelize/sequelize/labels{/name}","releases_url":"https://api.github.com/repos/sequelize/sequelize/releases{/id}","created_at":"2010-07-22T07:11:11Z","updated_at":"2015-07-07T18:59:04Z","pushed_at":"2015-07-07T06:03:22Z","git_url":"git://github.com/sequelize/sequelize.git","ssh_url":"git@github.com:sequelize/sequelize.git","clone_url":"https://github.com/sequelize/sequelize.git","svn_url":"https://github.com/sequelize/sequelize","homepage":"http://sequelizejs.com","size":58207,"stargazers_count":4064,"watchers_count":4064,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":921,"mirror_url":null,"open_issues_count":442,"forks":921,"open_issues":442,"watchers":4064,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/3995"},"html":{"href":"https://github.com/sequelize/sequelize/pull/3995"},"issue":{"href":"https://api.github.com/repos/sequelize/sequelize/issues/3995"},"comments":{"href":"https://api.github.com/repos/sequelize/sequelize/issues/3995/comments"},"review_comments":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/3995/comments"},"review_comment":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/3995/commits"},"statuses":{"href":"https://api.github.com/repos/sequelize/sequelize/statuses/dd779d04c177c2775e1140d8c406cb51695bfc90"}}}}