{"action":"created","comment":{"url":"https://api.github.com/repos/src-d/go-mysql-server/pulls/comments/226607698","pull_request_review_id":166473022,"id":226607698,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjYwNzY5OA==","diff_hunk":"@@ -63,6 +64,11 @@ func Parse(ctx *sql.Context, query string) (sql.Node, error) {\n \t}\n \n \tlowerQuery := strings.ToLower(s)\n+\tif showWarningsRegex.MatchString(lowerQuery) {","path":"sql/parse/parse.go","position":12,"original_position":12,"commit_id":"5e9cdb131771390f9ca06c49c9ab3031c5a28b94","original_commit_id":"5e9cdb131771390f9ca06c49c9ab3031c5a28b94","user":{"login":"ajnavarro","id":1196465,"node_id":"MDQ6VXNlcjExOTY0NjU=","avatar_url":"https://avatars3.githubusercontent.com/u/1196465?v=4","gravatar_id":"","url":"https://api.github.com/users/ajnavarro","html_url":"https://github.com/ajnavarro","followers_url":"https://api.github.com/users/ajnavarro/followers","following_url":"https://api.github.com/users/ajnavarro/following{/other_user}","gists_url":"https://api.github.com/users/ajnavarro/gists{/gist_id}","starred_url":"https://api.github.com/users/ajnavarro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajnavarro/subscriptions","organizations_url":"https://api.github.com/users/ajnavarro/orgs","repos_url":"https://api.github.com/users/ajnavarro/repos","events_url":"https://api.github.com/users/ajnavarro/events{/privacy}","received_events_url":"https://api.github.com/users/ajnavarro/received_events","type":"User","site_admin":false},"body":"should we do this on analyzer phase using a rule?","created_at":"2018-10-19T10:56:30Z","updated_at":"2018-10-19T10:56:31Z","html_url":"https://github.com/src-d/go-mysql-server/pull/464#discussion_r226607698","pull_request_url":"https://api.github.com/repos/src-d/go-mysql-server/pulls/464","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/src-d/go-mysql-server/pulls/comments/226607698"},"html":{"href":"https://github.com/src-d/go-mysql-server/pull/464#discussion_r226607698"},"pull_request":{"href":"https://api.github.com/repos/src-d/go-mysql-server/pulls/464"}}},"pull_request":{"url":"https://api.github.com/repos/src-d/go-mysql-server/pulls/464","id":223612400,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzNjEyNDAw","html_url":"https://github.com/src-d/go-mysql-server/pull/464","diff_url":"https://github.com/src-d/go-mysql-server/pull/464.diff","patch_url":"https://github.com/src-d/go-mysql-server/pull/464.patch","issue_url":"https://api.github.com/repos/src-d/go-mysql-server/issues/464","number":464,"state":"open","locked":false,"title":"Show warnings - implementation","user":{"login":"kuba--","id":4056521,"node_id":"MDQ6VXNlcjQwNTY1MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/4056521?v=4","gravatar_id":"","url":"https://api.github.com/users/kuba--","html_url":"https://github.com/kuba--","followers_url":"https://api.github.com/users/kuba--/followers","following_url":"https://api.github.com/users/kuba--/following{/other_user}","gists_url":"https://api.github.com/users/kuba--/gists{/gist_id}","starred_url":"https://api.github.com/users/kuba--/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuba--/subscriptions","organizations_url":"https://api.github.com/users/kuba--/orgs","repos_url":"https://api.github.com/users/kuba--/repos","events_url":"https://api.github.com/users/kuba--/events{/privacy}","received_events_url":"https://api.github.com/users/kuba--/received_events","type":"User","site_admin":false},"body":"Signed-off-by: kuba-- <kuba@sourced.tech>\r\n\r\nThis PR implements _just_:\r\n```sql\r\nSHOW WARNINGS [LIMIT [offset,] count]\r\n```\r\n\r\nNote: We need to implement _collect session warnings_ (https://github.com/src-d/go-mysql-server/issues/465)\r\n\r\nCloses https://github.com/src-d/go-mysql-server/issues/442","created_at":"2018-10-17T13:51:39Z","updated_at":"2018-10-19T10:56:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eed91cf85b734941b1de0cabf444645aa70675b7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":835651614,"node_id":"MDU6TGFiZWw4MzU2NTE2MTQ=","url":"https://api.github.com/repos/src-d/go-mysql-server/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/src-d/go-mysql-server/pulls/464/commits","review_comments_url":"https://api.github.com/repos/src-d/go-mysql-server/pulls/464/comments","review_comment_url":"https://api.github.com/repos/src-d/go-mysql-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/src-d/go-mysql-server/issues/464/comments","statuses_url":"https://api.github.com/repos/src-d/go-mysql-server/statuses/5e9cdb131771390f9ca06c49c9ab3031c5a28b94","head":{"label":"kuba--:show-warnings","ref":"show-warnings","sha":"5e9cdb131771390f9ca06c49c9ab3031c5a28b94","user":{"login":"kuba--","id":4056521,"node_id":"MDQ6VXNlcjQwNTY1MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/4056521?v=4","gravatar_id":"","url":"https://api.github.com/users/kuba--","html_url":"https://github.com/kuba--","followers_url":"https://api.github.com/users/kuba--/followers","following_url":"https://api.github.com/users/kuba--/following{/other_user}","gists_url":"https://api.github.com/users/kuba--/gists{/gist_id}","starred_url":"https://api.github.com/users/kuba--/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuba--/subscriptions","organizations_url":"https://api.github.com/users/kuba--/orgs","repos_url":"https://api.github.com/users/kuba--/repos","events_url":"https://api.github.com/users/kuba--/events{/privacy}","received_events_url":"https://api.github.com/users/kuba--/received_events","type":"User","site_admin":false},"repo":{"id":143021670,"node_id":"MDEwOlJlcG9zaXRvcnkxNDMwMjE2NzA=","name":"go-mysql-server","full_name":"kuba--/go-mysql-server","private":false,"owner":{"login":"kuba--","id":4056521,"node_id":"MDQ6VXNlcjQwNTY1MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/4056521?v=4","gravatar_id":"","url":"https://api.github.com/users/kuba--","html_url":"https://github.com/kuba--","followers_url":"https://api.github.com/users/kuba--/followers","following_url":"https://api.github.com/users/kuba--/following{/other_user}","gists_url":"https://api.github.com/users/kuba--/gists{/gist_id}","starred_url":"https://api.github.com/users/kuba--/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuba--/subscriptions","organizations_url":"https://api.github.com/users/kuba--/orgs","repos_url":"https://api.github.com/users/kuba--/repos","events_url":"https://api.github.com/users/kuba--/events{/privacy}","received_events_url":"https://api.github.com/users/kuba--/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kuba--/go-mysql-server","description":"An extensible MySQL server implementation in Go.","fork":true,"url":"https://api.github.com/repos/kuba--/go-mysql-server","forks_url":"https://api.github.com/repos/kuba--/go-mysql-server/forks","keys_url":"https://api.github.com/repos/kuba--/go-mysql-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kuba--/go-mysql-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kuba--/go-mysql-server/teams","hooks_url":"https://api.github.com/repos/kuba--/go-mysql-server/hooks","issue_events_url":"https://api.github.com/repos/kuba--/go-mysql-server/issues/events{/number}","events_url":"https://api.github.com/repos/kuba--/go-mysql-server/events","assignees_url":"https://api.github.com/repos/kuba--/go-mysql-server/assignees{/user}","branches_url":"https://api.github.com/repos/kuba--/go-mysql-server/branches{/branch}","tags_url":"https://api.github.com/repos/kuba--/go-mysql-server/tags","blobs_url":"https://api.github.com/repos/kuba--/go-mysql-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kuba--/go-mysql-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kuba--/go-mysql-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/kuba--/go-mysql-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kuba--/go-mysql-server/statuses/{sha}","languages_url":"https://api.github.com/repos/kuba--/go-mysql-server/languages","stargazers_url":"https://api.github.com/repos/kuba--/go-mysql-server/stargazers","contributors_url":"https://api.github.com/repos/kuba--/go-mysql-server/contributors","subscribers_url":"https://api.github.com/repos/kuba--/go-mysql-server/subscribers","subscription_url":"https://api.github.com/repos/kuba--/go-mysql-server/subscription","commits_url":"https://api.github.com/repos/kuba--/go-mysql-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/kuba--/go-mysql-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/kuba--/go-mysql-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/kuba--/go-mysql-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/kuba--/go-mysql-server/contents/{+path}","compare_url":"https://api.github.com/repos/kuba--/go-mysql-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kuba--/go-mysql-server/merges","archive_url":"https://api.github.com/repos/kuba--/go-mysql-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kuba--/go-mysql-server/downloads","issues_url":"https://api.github.com/repos/kuba--/go-mysql-server/issues{/number}","pulls_url":"https://api.github.com/repos/kuba--/go-mysql-server/pulls{/number}","milestones_url":"https://api.github.com/repos/kuba--/go-mysql-server/milestones{/number}","notifications_url":"https://api.github.com/repos/kuba--/go-mysql-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kuba--/go-mysql-server/labels{/name}","releases_url":"https://api.github.com/repos/kuba--/go-mysql-server/releases{/id}","deployments_url":"https://api.github.com/repos/kuba--/go-mysql-server/deployments","created_at":"2018-07-31T13:58:14Z","updated_at":"2018-10-18T18:07:07Z","pushed_at":"2018-10-19T10:42:31Z","git_url":"git://github.com/kuba--/go-mysql-server.git","ssh_url":"git@github.com:kuba--/go-mysql-server.git","clone_url":"https://github.com/kuba--/go-mysql-server.git","svn_url":"https://github.com/kuba--/go-mysql-server","homepage":"","size":1762,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"src-d:master","ref":"master","sha":"b1203b4cd0f4734da7552435f10b65a311226a35","user":{"login":"src-d","id":15128793,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTI4Nzkz","avatar_url":"https://avatars2.githubusercontent.com/u/15128793?v=4","gravatar_id":"","url":"https://api.github.com/users/src-d","html_url":"https://github.com/src-d","followers_url":"https://api.github.com/users/src-d/followers","following_url":"https://api.github.com/users/src-d/following{/other_user}","gists_url":"https://api.github.com/users/src-d/gists{/gist_id}","starred_url":"https://api.github.com/users/src-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/src-d/subscriptions","organizations_url":"https://api.github.com/users/src-d/orgs","repos_url":"https://api.github.com/users/src-d/repos","events_url":"https://api.github.com/users/src-d/events{/privacy}","received_events_url":"https://api.github.com/users/src-d/received_events","type":"Organization","site_admin":false},"repo":{"id":121319560,"node_id":"MDEwOlJlcG9zaXRvcnkxMjEzMTk1NjA=","name":"go-mysql-server","full_name":"src-d/go-mysql-server","private":false,"owner":{"login":"src-d","id":15128793,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTI4Nzkz","avatar_url":"https://avatars2.githubusercontent.com/u/15128793?v=4","gravatar_id":"","url":"https://api.github.com/users/src-d","html_url":"https://github.com/src-d","followers_url":"https://api.github.com/users/src-d/followers","following_url":"https://api.github.com/users/src-d/following{/other_user}","gists_url":"https://api.github.com/users/src-d/gists{/gist_id}","starred_url":"https://api.github.com/users/src-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/src-d/subscriptions","organizations_url":"https://api.github.com/users/src-d/orgs","repos_url":"https://api.github.com/users/src-d/repos","events_url":"https://api.github.com/users/src-d/events{/privacy}","received_events_url":"https://api.github.com/users/src-d/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/src-d/go-mysql-server","description":"An extensible MySQL server implementation in Go.","fork":false,"url":"https://api.github.com/repos/src-d/go-mysql-server","forks_url":"https://api.github.com/repos/src-d/go-mysql-server/forks","keys_url":"https://api.github.com/repos/src-d/go-mysql-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/src-d/go-mysql-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/src-d/go-mysql-server/teams","hooks_url":"https://api.github.com/repos/src-d/go-mysql-server/hooks","issue_events_url":"https://api.github.com/repos/src-d/go-mysql-server/issues/events{/number}","events_url":"https://api.github.com/repos/src-d/go-mysql-server/events","assignees_url":"https://api.github.com/repos/src-d/go-mysql-server/assignees{/user}","branches_url":"https://api.github.com/repos/src-d/go-mysql-server/branches{/branch}","tags_url":"https://api.github.com/repos/src-d/go-mysql-server/tags","blobs_url":"https://api.github.com/repos/src-d/go-mysql-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/src-d/go-mysql-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/src-d/go-mysql-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/src-d/go-mysql-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/src-d/go-mysql-server/statuses/{sha}","languages_url":"https://api.github.com/repos/src-d/go-mysql-server/languages","stargazers_url":"https://api.github.com/repos/src-d/go-mysql-server/stargazers","contributors_url":"https://api.github.com/repos/src-d/go-mysql-server/contributors","subscribers_url":"https://api.github.com/repos/src-d/go-mysql-server/subscribers","subscription_url":"https://api.github.com/repos/src-d/go-mysql-server/subscription","commits_url":"https://api.github.com/repos/src-d/go-mysql-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/src-d/go-mysql-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/src-d/go-mysql-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/src-d/go-mysql-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/src-d/go-mysql-server/contents/{+path}","compare_url":"https://api.github.com/repos/src-d/go-mysql-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/src-d/go-mysql-server/merges","archive_url":"https://api.github.com/repos/src-d/go-mysql-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/src-d/go-mysql-server/downloads","issues_url":"https://api.github.com/repos/src-d/go-mysql-server/issues{/number}","pulls_url":"https://api.github.com/repos/src-d/go-mysql-server/pulls{/number}","milestones_url":"https://api.github.com/repos/src-d/go-mysql-server/milestones{/number}","notifications_url":"https://api.github.com/repos/src-d/go-mysql-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/src-d/go-mysql-server/labels{/name}","releases_url":"https://api.github.com/repos/src-d/go-mysql-server/releases{/id}","deployments_url":"https://api.github.com/repos/src-d/go-mysql-server/deployments","created_at":"2018-02-13T00:24:19Z","updated_at":"2018-10-19T09:37:50Z","pushed_at":"2018-10-19T10:42:33Z","git_url":"git://github.com/src-d/go-mysql-server.git","ssh_url":"git@github.com:src-d/go-mysql-server.git","clone_url":"https://github.com/src-d/go-mysql-server.git","svn_url":"https://github.com/src-d/go-mysql-server","homepage":"","size":1766,"stargazers_count":125,"watchers_count":125,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":26,"mirror_url":null,"archived":false,"open_issues_count":33,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":26,"open_issues":33,"watchers":125,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/src-d/go-mysql-server/pulls/464"},"html":{"href":"https://github.com/src-d/go-mysql-server/pull/464"},"issue":{"href":"https://api.github.com/repos/src-d/go-mysql-server/issues/464"},"comments":{"href":"https://api.github.com/repos/src-d/go-mysql-server/issues/464/comments"},"review_comments":{"href":"https://api.github.com/repos/src-d/go-mysql-server/pulls/464/comments"},"review_comment":{"href":"https://api.github.com/repos/src-d/go-mysql-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/src-d/go-mysql-server/pulls/464/commits"},"statuses":{"href":"https://api.github.com/repos/src-d/go-mysql-server/statuses/5e9cdb131771390f9ca06c49c9ab3031c5a28b94"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"ajnavarro"}}