{"action":"opened","number":161,"pull_request":{"url":"https://api.github.com/repos/percona/percona-agent/pulls/161","id":32545409,"html_url":"https://github.com/percona/percona-agent/pull/161","diff_url":"https://github.com/percona/percona-agent/pull/161.diff","patch_url":"https://github.com/percona/percona-agent/pull/161.patch","issue_url":"https://api.github.com/repos/percona/percona-agent/issues/161","number":161,"state":"open","locked":false,"title":"PCT-1510 Explain not working for DML queries on MySQL 5.6.3+","user":{"login":"cfsalguero","id":2954232,"avatar_url":"https://avatars.githubusercontent.com/u/2954232?v=3","gravatar_id":"","url":"https://api.github.com/users/cfsalguero","html_url":"https://github.com/cfsalguero","followers_url":"https://api.github.com/users/cfsalguero/followers","following_url":"https://api.github.com/users/cfsalguero/following{/other_user}","gists_url":"https://api.github.com/users/cfsalguero/gists{/gist_id}","starred_url":"https://api.github.com/users/cfsalguero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfsalguero/subscriptions","organizations_url":"https://api.github.com/users/cfsalguero/orgs","repos_url":"https://api.github.com/users/cfsalguero/repos","events_url":"https://api.github.com/users/cfsalguero/events{/privacy}","received_events_url":"https://api.github.com/users/cfsalguero/received_events","type":"User","site_admin":false},"body":"On MySQL 5.6.3+, running an explain on DML queries requires special privileges.\r\nThe original fix, PCT-1054 was made when 5.6.3 was not available so it was checking only for SYNTAX ERROR. Now it checks for sysntax error and permission denied to determine is the query should be converted to the equivalent SELECT.\r\nAlso fixed a conversion from INSERT to SELECT using string parameters","created_at":"2015-04-02T20:07:21Z","updated_at":"2015-04-02T20:07:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/percona/percona-agent/pulls/161/commits","review_comments_url":"https://api.github.com/repos/percona/percona-agent/pulls/161/comments","review_comment_url":"https://api.github.com/repos/percona/percona-agent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/percona/percona-agent/issues/161/comments","statuses_url":"https://api.github.com/repos/percona/percona-agent/statuses/301847e15849dfd6c7f34016d2a2d88536ac1a65","head":{"label":"percona:PCT-1054-RO","ref":"PCT-1054-RO","sha":"301847e15849dfd6c7f34016d2a2d88536ac1a65","user":{"login":"percona","id":1683025,"avatar_url":"https://avatars.githubusercontent.com/u/1683025?v=3","gravatar_id":"","url":"https://api.github.com/users/percona","html_url":"https://github.com/percona","followers_url":"https://api.github.com/users/percona/followers","following_url":"https://api.github.com/users/percona/following{/other_user}","gists_url":"https://api.github.com/users/percona/gists{/gist_id}","starred_url":"https://api.github.com/users/percona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percona/subscriptions","organizations_url":"https://api.github.com/users/percona/orgs","repos_url":"https://api.github.com/users/percona/repos","events_url":"https://api.github.com/users/percona/events{/privacy}","received_events_url":"https://api.github.com/users/percona/received_events","type":"Organization","site_admin":false},"repo":{"id":11132795,"name":"percona-agent","full_name":"percona/percona-agent","owner":{"login":"percona","id":1683025,"avatar_url":"https://avatars.githubusercontent.com/u/1683025?v=3","gravatar_id":"","url":"https://api.github.com/users/percona","html_url":"https://github.com/percona","followers_url":"https://api.github.com/users/percona/followers","following_url":"https://api.github.com/users/percona/following{/other_user}","gists_url":"https://api.github.com/users/percona/gists{/gist_id}","starred_url":"https://api.github.com/users/percona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percona/subscriptions","organizations_url":"https://api.github.com/users/percona/orgs","repos_url":"https://api.github.com/users/percona/repos","events_url":"https://api.github.com/users/percona/events{/privacy}","received_events_url":"https://api.github.com/users/percona/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/percona/percona-agent","description":"Percona Cloud Tools Agent","fork":false,"url":"https://api.github.com/repos/percona/percona-agent","forks_url":"https://api.github.com/repos/percona/percona-agent/forks","keys_url":"https://api.github.com/repos/percona/percona-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/percona/percona-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/percona/percona-agent/teams","hooks_url":"https://api.github.com/repos/percona/percona-agent/hooks","issue_events_url":"https://api.github.com/repos/percona/percona-agent/issues/events{/number}","events_url":"https://api.github.com/repos/percona/percona-agent/events","assignees_url":"https://api.github.com/repos/percona/percona-agent/assignees{/user}","branches_url":"https://api.github.com/repos/percona/percona-agent/branches{/branch}","tags_url":"https://api.github.com/repos/percona/percona-agent/tags","blobs_url":"https://api.github.com/repos/percona/percona-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/percona/percona-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/percona/percona-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/percona/percona-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/percona/percona-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/percona/percona-agent/languages","stargazers_url":"https://api.github.com/repos/percona/percona-agent/stargazers","contributors_url":"https://api.github.com/repos/percona/percona-agent/contributors","subscribers_url":"https://api.github.com/repos/percona/percona-agent/subscribers","subscription_url":"https://api.github.com/repos/percona/percona-agent/subscription","commits_url":"https://api.github.com/repos/percona/percona-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/percona/percona-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/percona/percona-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/percona/percona-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/percona/percona-agent/contents/{+path}","compare_url":"https://api.github.com/repos/percona/percona-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/percona/percona-agent/merges","archive_url":"https://api.github.com/repos/percona/percona-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/percona/percona-agent/downloads","issues_url":"https://api.github.com/repos/percona/percona-agent/issues{/number}","pulls_url":"https://api.github.com/repos/percona/percona-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/percona/percona-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/percona/percona-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/percona/percona-agent/labels{/name}","releases_url":"https://api.github.com/repos/percona/percona-agent/releases{/id}","created_at":"2013-07-02T19:09:37Z","updated_at":"2015-03-30T18:36:37Z","pushed_at":"2015-04-02T20:07:22Z","git_url":"git://github.com/percona/percona-agent.git","ssh_url":"git@github.com:percona/percona-agent.git","clone_url":"https://github.com/percona/percona-agent.git","svn_url":"https://github.com/percona/percona-agent","homepage":"","size":12781,"stargazers_count":38,"watchers_count":38,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":6,"forks":10,"open_issues":6,"watchers":38,"default_branch":"release"}},"base":{"label":"percona:release","ref":"release","sha":"7314f4b2f36225d127d5cdd11a5ce92f9ee5c238","user":{"login":"percona","id":1683025,"avatar_url":"https://avatars.githubusercontent.com/u/1683025?v=3","gravatar_id":"","url":"https://api.github.com/users/percona","html_url":"https://github.com/percona","followers_url":"https://api.github.com/users/percona/followers","following_url":"https://api.github.com/users/percona/following{/other_user}","gists_url":"https://api.github.com/users/percona/gists{/gist_id}","starred_url":"https://api.github.com/users/percona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percona/subscriptions","organizations_url":"https://api.github.com/users/percona/orgs","repos_url":"https://api.github.com/users/percona/repos","events_url":"https://api.github.com/users/percona/events{/privacy}","received_events_url":"https://api.github.com/users/percona/received_events","type":"Organization","site_admin":false},"repo":{"id":11132795,"name":"percona-agent","full_name":"percona/percona-agent","owner":{"login":"percona","id":1683025,"avatar_url":"https://avatars.githubusercontent.com/u/1683025?v=3","gravatar_id":"","url":"https://api.github.com/users/percona","html_url":"https://github.com/percona","followers_url":"https://api.github.com/users/percona/followers","following_url":"https://api.github.com/users/percona/following{/other_user}","gists_url":"https://api.github.com/users/percona/gists{/gist_id}","starred_url":"https://api.github.com/users/percona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percona/subscriptions","organizations_url":"https://api.github.com/users/percona/orgs","repos_url":"https://api.github.com/users/percona/repos","events_url":"https://api.github.com/users/percona/events{/privacy}","received_events_url":"https://api.github.com/users/percona/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/percona/percona-agent","description":"Percona Cloud Tools Agent","fork":false,"url":"https://api.github.com/repos/percona/percona-agent","forks_url":"https://api.github.com/repos/percona/percona-agent/forks","keys_url":"https://api.github.com/repos/percona/percona-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/percona/percona-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/percona/percona-agent/teams","hooks_url":"https://api.github.com/repos/percona/percona-agent/hooks","issue_events_url":"https://api.github.com/repos/percona/percona-agent/issues/events{/number}","events_url":"https://api.github.com/repos/percona/percona-agent/events","assignees_url":"https://api.github.com/repos/percona/percona-agent/assignees{/user}","branches_url":"https://api.github.com/repos/percona/percona-agent/branches{/branch}","tags_url":"https://api.github.com/repos/percona/percona-agent/tags","blobs_url":"https://api.github.com/repos/percona/percona-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/percona/percona-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/percona/percona-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/percona/percona-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/percona/percona-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/percona/percona-agent/languages","stargazers_url":"https://api.github.com/repos/percona/percona-agent/stargazers","contributors_url":"https://api.github.com/repos/percona/percona-agent/contributors","subscribers_url":"https://api.github.com/repos/percona/percona-agent/subscribers","subscription_url":"https://api.github.com/repos/percona/percona-agent/subscription","commits_url":"https://api.github.com/repos/percona/percona-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/percona/percona-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/percona/percona-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/percona/percona-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/percona/percona-agent/contents/{+path}","compare_url":"https://api.github.com/repos/percona/percona-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/percona/percona-agent/merges","archive_url":"https://api.github.com/repos/percona/percona-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/percona/percona-agent/downloads","issues_url":"https://api.github.com/repos/percona/percona-agent/issues{/number}","pulls_url":"https://api.github.com/repos/percona/percona-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/percona/percona-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/percona/percona-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/percona/percona-agent/labels{/name}","releases_url":"https://api.github.com/repos/percona/percona-agent/releases{/id}","created_at":"2013-07-02T19:09:37Z","updated_at":"2015-03-30T18:36:37Z","pushed_at":"2015-04-02T20:07:22Z","git_url":"git://github.com/percona/percona-agent.git","ssh_url":"git@github.com:percona/percona-agent.git","clone_url":"https://github.com/percona/percona-agent.git","svn_url":"https://github.com/percona/percona-agent","homepage":"","size":12781,"stargazers_count":38,"watchers_count":38,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":6,"forks":10,"open_issues":6,"watchers":38,"default_branch":"release"}},"_links":{"self":{"href":"https://api.github.com/repos/percona/percona-agent/pulls/161"},"html":{"href":"https://github.com/percona/percona-agent/pull/161"},"issue":{"href":"https://api.github.com/repos/percona/percona-agent/issues/161"},"comments":{"href":"https://api.github.com/repos/percona/percona-agent/issues/161/comments"},"review_comments":{"href":"https://api.github.com/repos/percona/percona-agent/pulls/161/comments"},"review_comment":{"href":"https://api.github.com/repos/percona/percona-agent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/percona/percona-agent/pulls/161/commits"},"statuses":{"href":"https://api.github.com/repos/percona/percona-agent/statuses/301847e15849dfd6c7f34016d2a2d88536ac1a65"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":15,"deletions":9,"changed_files":3}}