{"action":"created","comment":{"url":"https://api.github.com/repos/rust-lang/crates.io/pulls/comments/51592364","id":51592364,"diff_hunk":"@@ -33,7 +33,7 @@ impl Keyword {\n     pub fn find_by_keyword(conn: &GenericConnection, name: &str)\n                            -> CargoResult<Option<Keyword>> {\n         let stmt = try!(conn.prepare(\"SELECT * FROM keywords \\\n-                                      WHERE keyword = $1\"));\n+                                      WHERE LOWER(keyword) = $1\"));","path":"src/keyword.rs","position":5,"original_position":5,"commit_id":"7e14afd54ae4a594ae5f952a71f37981c686957d","original_commit_id":"7e14afd54ae4a594ae5f952a71f37981c686957d","user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"body":"This might not hit the index because it's strictly on just the `keyword` column, but I think here we'll actually want `LOWER($1)` instead as we want to lowercase the user input","created_at":"2016-02-02T16:27:15Z","updated_at":"2016-02-02T16:27:15Z","html_url":"https://github.com/rust-lang/crates.io/pull/255#discussion_r51592364","pull_request_url":"https://api.github.com/repos/rust-lang/crates.io/pulls/255","_links":{"self":{"href":"https://api.github.com/repos/rust-lang/crates.io/pulls/comments/51592364"},"html":{"href":"https://github.com/rust-lang/crates.io/pull/255#discussion_r51592364"},"pull_request":{"href":"https://api.github.com/repos/rust-lang/crates.io/pulls/255"}}},"pull_request":{"url":"https://api.github.com/repos/rust-lang/crates.io/pulls/255","id":57727805,"html_url":"https://github.com/rust-lang/crates.io/pull/255","diff_url":"https://github.com/rust-lang/crates.io/pull/255.diff","patch_url":"https://github.com/rust-lang/crates.io/pull/255.patch","issue_url":"https://api.github.com/repos/rust-lang/crates.io/issues/255","number":255,"state":"open","locked":false,"title":"Case-Insensitive Keyword","user":{"login":"gsquire","id":2665334,"avatar_url":"https://avatars.githubusercontent.com/u/2665334?v=3","gravatar_id":"","url":"https://api.github.com/users/gsquire","html_url":"https://github.com/gsquire","followers_url":"https://api.github.com/users/gsquire/followers","following_url":"https://api.github.com/users/gsquire/following{/other_user}","gists_url":"https://api.github.com/users/gsquire/gists{/gist_id}","starred_url":"https://api.github.com/users/gsquire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsquire/subscriptions","organizations_url":"https://api.github.com/users/gsquire/orgs","repos_url":"https://api.github.com/users/gsquire/repos","events_url":"https://api.github.com/users/gsquire/events{/privacy}","received_events_url":"https://api.github.com/users/gsquire/received_events","type":"User","site_admin":false},"body":"This is a simple fix to address #254 ","created_at":"2016-01-30T02:48:26Z","updated_at":"2016-02-02T16:27:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1ab7e774268dcb71e265a4c2f198a18ea9517f8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rust-lang/crates.io/pulls/255/commits","review_comments_url":"https://api.github.com/repos/rust-lang/crates.io/pulls/255/comments","review_comment_url":"https://api.github.com/repos/rust-lang/crates.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rust-lang/crates.io/issues/255/comments","statuses_url":"https://api.github.com/repos/rust-lang/crates.io/statuses/7e14afd54ae4a594ae5f952a71f37981c686957d","head":{"label":"gsquire:keywords-case-insensitive","ref":"keywords-case-insensitive","sha":"7e14afd54ae4a594ae5f952a71f37981c686957d","user":{"login":"gsquire","id":2665334,"avatar_url":"https://avatars.githubusercontent.com/u/2665334?v=3","gravatar_id":"","url":"https://api.github.com/users/gsquire","html_url":"https://github.com/gsquire","followers_url":"https://api.github.com/users/gsquire/followers","following_url":"https://api.github.com/users/gsquire/following{/other_user}","gists_url":"https://api.github.com/users/gsquire/gists{/gist_id}","starred_url":"https://api.github.com/users/gsquire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsquire/subscriptions","organizations_url":"https://api.github.com/users/gsquire/orgs","repos_url":"https://api.github.com/users/gsquire/repos","events_url":"https://api.github.com/users/gsquire/events{/privacy}","received_events_url":"https://api.github.com/users/gsquire/received_events","type":"User","site_admin":false},"repo":{"id":50704670,"name":"crates.io","full_name":"gsquire/crates.io","owner":{"login":"gsquire","id":2665334,"avatar_url":"https://avatars.githubusercontent.com/u/2665334?v=3","gravatar_id":"","url":"https://api.github.com/users/gsquire","html_url":"https://github.com/gsquire","followers_url":"https://api.github.com/users/gsquire/followers","following_url":"https://api.github.com/users/gsquire/following{/other_user}","gists_url":"https://api.github.com/users/gsquire/gists{/gist_id}","starred_url":"https://api.github.com/users/gsquire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsquire/subscriptions","organizations_url":"https://api.github.com/users/gsquire/orgs","repos_url":"https://api.github.com/users/gsquire/repos","events_url":"https://api.github.com/users/gsquire/events{/privacy}","received_events_url":"https://api.github.com/users/gsquire/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gsquire/crates.io","description":"Source code for crates.io","fork":true,"url":"https://api.github.com/repos/gsquire/crates.io","forks_url":"https://api.github.com/repos/gsquire/crates.io/forks","keys_url":"https://api.github.com/repos/gsquire/crates.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gsquire/crates.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gsquire/crates.io/teams","hooks_url":"https://api.github.com/repos/gsquire/crates.io/hooks","issue_events_url":"https://api.github.com/repos/gsquire/crates.io/issues/events{/number}","events_url":"https://api.github.com/repos/gsquire/crates.io/events","assignees_url":"https://api.github.com/repos/gsquire/crates.io/assignees{/user}","branches_url":"https://api.github.com/repos/gsquire/crates.io/branches{/branch}","tags_url":"https://api.github.com/repos/gsquire/crates.io/tags","blobs_url":"https://api.github.com/repos/gsquire/crates.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gsquire/crates.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gsquire/crates.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/gsquire/crates.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gsquire/crates.io/statuses/{sha}","languages_url":"https://api.github.com/repos/gsquire/crates.io/languages","stargazers_url":"https://api.github.com/repos/gsquire/crates.io/stargazers","contributors_url":"https://api.github.com/repos/gsquire/crates.io/contributors","subscribers_url":"https://api.github.com/repos/gsquire/crates.io/subscribers","subscription_url":"https://api.github.com/repos/gsquire/crates.io/subscription","commits_url":"https://api.github.com/repos/gsquire/crates.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/gsquire/crates.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/gsquire/crates.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/gsquire/crates.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/gsquire/crates.io/contents/{+path}","compare_url":"https://api.github.com/repos/gsquire/crates.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gsquire/crates.io/merges","archive_url":"https://api.github.com/repos/gsquire/crates.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gsquire/crates.io/downloads","issues_url":"https://api.github.com/repos/gsquire/crates.io/issues{/number}","pulls_url":"https://api.github.com/repos/gsquire/crates.io/pulls{/number}","milestones_url":"https://api.github.com/repos/gsquire/crates.io/milestones{/number}","notifications_url":"https://api.github.com/repos/gsquire/crates.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gsquire/crates.io/labels{/name}","releases_url":"https://api.github.com/repos/gsquire/crates.io/releases{/id}","deployments_url":"https://api.github.com/repos/gsquire/crates.io/deployments","created_at":"2016-01-30T02:27:11Z","updated_at":"2016-01-30T02:27:12Z","pushed_at":"2016-02-02T08:06:04Z","git_url":"git://github.com/gsquire/crates.io.git","ssh_url":"git@github.com:gsquire/crates.io.git","clone_url":"https://github.com/gsquire/crates.io.git","svn_url":"https://github.com/gsquire/crates.io","homepage":"https://crates.io","size":1551,"stargazers_count":0,"watchers_count":0,"language":"Rust","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":"rust-lang:master","ref":"master","sha":"d7515d4c4de18334293b9f17017ca7ac7650d6e0","user":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":21365581,"name":"crates.io","full_name":"rust-lang/crates.io","owner":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rust-lang/crates.io","description":"Source code for crates.io","fork":false,"url":"https://api.github.com/repos/rust-lang/crates.io","forks_url":"https://api.github.com/repos/rust-lang/crates.io/forks","keys_url":"https://api.github.com/repos/rust-lang/crates.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rust-lang/crates.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rust-lang/crates.io/teams","hooks_url":"https://api.github.com/repos/rust-lang/crates.io/hooks","issue_events_url":"https://api.github.com/repos/rust-lang/crates.io/issues/events{/number}","events_url":"https://api.github.com/repos/rust-lang/crates.io/events","assignees_url":"https://api.github.com/repos/rust-lang/crates.io/assignees{/user}","branches_url":"https://api.github.com/repos/rust-lang/crates.io/branches{/branch}","tags_url":"https://api.github.com/repos/rust-lang/crates.io/tags","blobs_url":"https://api.github.com/repos/rust-lang/crates.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rust-lang/crates.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rust-lang/crates.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/rust-lang/crates.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rust-lang/crates.io/statuses/{sha}","languages_url":"https://api.github.com/repos/rust-lang/crates.io/languages","stargazers_url":"https://api.github.com/repos/rust-lang/crates.io/stargazers","contributors_url":"https://api.github.com/repos/rust-lang/crates.io/contributors","subscribers_url":"https://api.github.com/repos/rust-lang/crates.io/subscribers","subscription_url":"https://api.github.com/repos/rust-lang/crates.io/subscription","commits_url":"https://api.github.com/repos/rust-lang/crates.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/rust-lang/crates.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/rust-lang/crates.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/rust-lang/crates.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/rust-lang/crates.io/contents/{+path}","compare_url":"https://api.github.com/repos/rust-lang/crates.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rust-lang/crates.io/merges","archive_url":"https://api.github.com/repos/rust-lang/crates.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rust-lang/crates.io/downloads","issues_url":"https://api.github.com/repos/rust-lang/crates.io/issues{/number}","pulls_url":"https://api.github.com/repos/rust-lang/crates.io/pulls{/number}","milestones_url":"https://api.github.com/repos/rust-lang/crates.io/milestones{/number}","notifications_url":"https://api.github.com/repos/rust-lang/crates.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rust-lang/crates.io/labels{/name}","releases_url":"https://api.github.com/repos/rust-lang/crates.io/releases{/id}","deployments_url":"https://api.github.com/repos/rust-lang/crates.io/deployments","created_at":"2014-06-30T20:53:49Z","updated_at":"2016-02-02T06:23:33Z","pushed_at":"2016-02-02T08:06:05Z","git_url":"git://github.com/rust-lang/crates.io.git","ssh_url":"git@github.com:rust-lang/crates.io.git","clone_url":"https://github.com/rust-lang/crates.io.git","svn_url":"https://github.com/rust-lang/crates.io","homepage":"https://crates.io","size":1623,"stargazers_count":317,"watchers_count":317,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":76,"forks":57,"open_issues":76,"watchers":317,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang/crates.io/pulls/255"},"html":{"href":"https://github.com/rust-lang/crates.io/pull/255"},"issue":{"href":"https://api.github.com/repos/rust-lang/crates.io/issues/255"},"comments":{"href":"https://api.github.com/repos/rust-lang/crates.io/issues/255/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang/crates.io/pulls/255/comments"},"review_comment":{"href":"https://api.github.com/repos/rust-lang/crates.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rust-lang/crates.io/pulls/255/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang/crates.io/statuses/7e14afd54ae4a594ae5f952a71f37981c686957d"}}}}