{"pull_request":{"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/583c3d751af6c13d910b4fa8c6ef065d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"583c3d751af6c13d910b4fa8c6ef065d","url":"https://api.github.com/users/jmazzi","login":"jmazzi","id":2273},"deletions":2,"merged_by":null,"updated_at":"2011-11-03T19:24:23Z","commits":1,"base":{"ref":"3-1-stable","repo":{"name":"rails","fork":false,"master_branch":null,"pushed_at":"2011-11-03T19:11:46Z","homepage":"http://rubyonrails.org","open_issues":561,"clone_url":"https://github.com/rails/rails.git","updated_at":"2011-11-03T19:11:46Z","svn_url":"https://svn.github.com/rails/rails","forks":2349,"language":"Ruby","private":false,"url":"https://api.github.com/repos/rails/rails","owner":{"avatar_url":"https://secure.gravatar.com/avatar/30f39a09e233e8369dddf6feb4be0308?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"30f39a09e233e8369dddf6feb4be0308","url":"https://api.github.com/users/rails","login":"rails","id":4223},"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","size":39780,"id":8514,"watchers":10861,"git_url":"git://github.com/rails/rails.git","created_at":"2008-04-11T02:19:47Z","ssh_url":"git@github.com:rails/rails.git"},"user":{"avatar_url":"https://secure.gravatar.com/avatar/30f39a09e233e8369dddf6feb4be0308?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"30f39a09e233e8369dddf6feb4be0308","url":"https://api.github.com/users/rails","login":"rails","id":4223},"label":"rails:3-1-stable","sha":"75ae4b3492528dd1dddfb059a36e45eff3535da2"},"comments":0,"diff_url":"https://github.com/rails/rails/pull/3503.diff","closed_at":null,"url":"https://api.github.com/repos/rails/rails/pulls/3503","additions":21,"merged":false,"head":{"ref":"3-1-stable","repo":{"name":"rails","fork":true,"master_branch":null,"pushed_at":"2011-11-03T19:01:50Z","homepage":"http://rubyonrails.org","open_issues":0,"clone_url":"https://github.com/jmazzi/rails.git","updated_at":"2011-11-03T19:01:50Z","svn_url":"https://svn.github.com/jmazzi/rails","forks":0,"language":"Ruby","private":false,"url":"https://api.github.com/repos/jmazzi/rails","owner":{"avatar_url":"https://secure.gravatar.com/avatar/583c3d751af6c13d910b4fa8c6ef065d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"583c3d751af6c13d910b4fa8c6ef065d","url":"https://api.github.com/users/jmazzi","login":"jmazzi","id":2273},"html_url":"https://github.com/jmazzi/rails","description":"Ruby on Rails","size":456,"id":2704166,"watchers":1,"git_url":"git://github.com/jmazzi/rails.git","created_at":"2011-11-03T18:35:42Z","ssh_url":"git@github.com:jmazzi/rails.git"},"user":{"avatar_url":"https://secure.gravatar.com/avatar/583c3d751af6c13d910b4fa8c6ef065d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"583c3d751af6c13d910b4fa8c6ef065d","url":"https://api.github.com/users/jmazzi","login":"jmazzi","id":2273},"label":"jmazzi:3-1-stable","sha":"628f3b204fbb1932d18fb4a3f0c9f3638e6544dc"},"merged_at":null,"body":"I realize that not all custom_counter_sql can be inferred from the finder_sql which is why they currently default to COUNT(*). This patch will pass the columns used for \"simple\" SELECT to COUNT. If the SELECT contains any commas it will fallback to using '*'.","review_comments":0,"_links":{"comments":{"href":"https://api.github.com/repos/rails/rails/issues/3503/comments"},"html":{"href":"https://github.com/rails/rails/pull/3503"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/3503/comments"},"self":{"href":"https://api.github.com/repos/rails/rails/pulls/3503"}},"issue_url":"https://github.com/rails/rails/issues/3503","html_url":"https://github.com/rails/rails/pull/3503","title":"Preserve SELECT columns on the COUNT for finder_sql when possible","number":3503,"mergeable":null,"id":461405,"patch_url":"https://github.com/rails/rails/pull/3503.patch","changed_files":2,"created_at":"2011-11-03T19:24:23Z"},"action":"opened","number":3503}