{"action":"created","comment":{"url":"https://api.github.com/repos/readdle/fqdb/pulls/comments/36162146","id":36162146,"diff_hunk":"@@ -92,7 +89,9 @@ public function execute($sqlQuery, $params = [], $prefix = '')\n     public function beginTransaction()\n     {\n         try {\n+            $this->checkConnection();","path":"src/Readdle/Database/FQDBExecutor.php","position":49,"original_position":49,"commit_id":"0308e81f11606b399459b0985fc1cdbfd12d3618","original_commit_id":"0308e81f11606b399459b0985fc1cdbfd12d3618","user":{"login":"AndrianBdn","id":994900,"avatar_url":"https://avatars.githubusercontent.com/u/994900?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrianBdn","html_url":"https://github.com/AndrianBdn","followers_url":"https://api.github.com/users/AndrianBdn/followers","following_url":"https://api.github.com/users/AndrianBdn/following{/other_user}","gists_url":"https://api.github.com/users/AndrianBdn/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrianBdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrianBdn/subscriptions","organizations_url":"https://api.github.com/users/AndrianBdn/orgs","repos_url":"https://api.github.com/users/AndrianBdn/repos","events_url":"https://api.github.com/users/AndrianBdn/events{/privacy}","received_events_url":"https://api.github.com/users/AndrianBdn/received_events","type":"User","site_admin":false},"body":"check connection в случае чего сам умеет кидать правильные exception, давай вытащим его из этого try-catch ","created_at":"2015-08-04T07:03:21Z","updated_at":"2015-08-04T07:03:21Z","html_url":"https://github.com/readdle/fqdb/pull/11#discussion_r36162146","pull_request_url":"https://api.github.com/repos/readdle/fqdb/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/readdle/fqdb/pulls/comments/36162146"},"html":{"href":"https://github.com/readdle/fqdb/pull/11#discussion_r36162146"},"pull_request":{"href":"https://api.github.com/repos/readdle/fqdb/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/readdle/fqdb/pulls/11","id":41539187,"html_url":"https://github.com/readdle/fqdb/pull/11","diff_url":"https://github.com/readdle/fqdb/pull/11.diff","patch_url":"https://github.com/readdle/fqdb/pull/11.patch","issue_url":"https://api.github.com/repos/readdle/fqdb/issues/11","number":11,"state":"open","locked":false,"title":"Reconnection","user":{"login":"igorrynkovoy","id":7231376,"avatar_url":"https://avatars.githubusercontent.com/u/7231376?v=3","gravatar_id":"","url":"https://api.github.com/users/igorrynkovoy","html_url":"https://github.com/igorrynkovoy","followers_url":"https://api.github.com/users/igorrynkovoy/followers","following_url":"https://api.github.com/users/igorrynkovoy/following{/other_user}","gists_url":"https://api.github.com/users/igorrynkovoy/gists{/gist_id}","starred_url":"https://api.github.com/users/igorrynkovoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorrynkovoy/subscriptions","organizations_url":"https://api.github.com/users/igorrynkovoy/orgs","repos_url":"https://api.github.com/users/igorrynkovoy/repos","events_url":"https://api.github.com/users/igorrynkovoy/events{/privacy}","received_events_url":"https://api.github.com/users/igorrynkovoy/received_events","type":"User","site_admin":false},"body":"For MySQL server always check intervel between current and previous queries. If interval is more or equal to wait_timeout or interactive_timeout values, then reconnect.","created_at":"2015-08-04T06:50:22Z","updated_at":"2015-08-04T07:03:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8bd5a9d8204774ee2d3c8f9e925fb699ec0215c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/readdle/fqdb/pulls/11/commits","review_comments_url":"https://api.github.com/repos/readdle/fqdb/pulls/11/comments","review_comment_url":"https://api.github.com/repos/readdle/fqdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/readdle/fqdb/issues/11/comments","statuses_url":"https://api.github.com/repos/readdle/fqdb/statuses/0308e81f11606b399459b0985fc1cdbfd12d3618","head":{"label":"readdle:reconnection","ref":"reconnection","sha":"0308e81f11606b399459b0985fc1cdbfd12d3618","user":{"login":"readdle","id":4190811,"avatar_url":"https://avatars.githubusercontent.com/u/4190811?v=3","gravatar_id":"","url":"https://api.github.com/users/readdle","html_url":"https://github.com/readdle","followers_url":"https://api.github.com/users/readdle/followers","following_url":"https://api.github.com/users/readdle/following{/other_user}","gists_url":"https://api.github.com/users/readdle/gists{/gist_id}","starred_url":"https://api.github.com/users/readdle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/readdle/subscriptions","organizations_url":"https://api.github.com/users/readdle/orgs","repos_url":"https://api.github.com/users/readdle/repos","events_url":"https://api.github.com/users/readdle/events{/privacy}","received_events_url":"https://api.github.com/users/readdle/received_events","type":"Organization","site_admin":false},"repo":{"id":19178114,"name":"fqdb","full_name":"readdle/fqdb","owner":{"login":"readdle","id":4190811,"avatar_url":"https://avatars.githubusercontent.com/u/4190811?v=3","gravatar_id":"","url":"https://api.github.com/users/readdle","html_url":"https://github.com/readdle","followers_url":"https://api.github.com/users/readdle/followers","following_url":"https://api.github.com/users/readdle/following{/other_user}","gists_url":"https://api.github.com/users/readdle/gists{/gist_id}","starred_url":"https://api.github.com/users/readdle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/readdle/subscriptions","organizations_url":"https://api.github.com/users/readdle/orgs","repos_url":"https://api.github.com/users/readdle/repos","events_url":"https://api.github.com/users/readdle/events{/privacy}","received_events_url":"https://api.github.com/users/readdle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/readdle/fqdb","description":"PHP wrapper for PDO","fork":false,"url":"https://api.github.com/repos/readdle/fqdb","forks_url":"https://api.github.com/repos/readdle/fqdb/forks","keys_url":"https://api.github.com/repos/readdle/fqdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/readdle/fqdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/readdle/fqdb/teams","hooks_url":"https://api.github.com/repos/readdle/fqdb/hooks","issue_events_url":"https://api.github.com/repos/readdle/fqdb/issues/events{/number}","events_url":"https://api.github.com/repos/readdle/fqdb/events","assignees_url":"https://api.github.com/repos/readdle/fqdb/assignees{/user}","branches_url":"https://api.github.com/repos/readdle/fqdb/branches{/branch}","tags_url":"https://api.github.com/repos/readdle/fqdb/tags","blobs_url":"https://api.github.com/repos/readdle/fqdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/readdle/fqdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/readdle/fqdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/readdle/fqdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/readdle/fqdb/statuses/{sha}","languages_url":"https://api.github.com/repos/readdle/fqdb/languages","stargazers_url":"https://api.github.com/repos/readdle/fqdb/stargazers","contributors_url":"https://api.github.com/repos/readdle/fqdb/contributors","subscribers_url":"https://api.github.com/repos/readdle/fqdb/subscribers","subscription_url":"https://api.github.com/repos/readdle/fqdb/subscription","commits_url":"https://api.github.com/repos/readdle/fqdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/readdle/fqdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/readdle/fqdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/readdle/fqdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/readdle/fqdb/contents/{+path}","compare_url":"https://api.github.com/repos/readdle/fqdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/readdle/fqdb/merges","archive_url":"https://api.github.com/repos/readdle/fqdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/readdle/fqdb/downloads","issues_url":"https://api.github.com/repos/readdle/fqdb/issues{/number}","pulls_url":"https://api.github.com/repos/readdle/fqdb/pulls{/number}","milestones_url":"https://api.github.com/repos/readdle/fqdb/milestones{/number}","notifications_url":"https://api.github.com/repos/readdle/fqdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/readdle/fqdb/labels{/name}","releases_url":"https://api.github.com/repos/readdle/fqdb/releases{/id}","created_at":"2014-04-26T13:33:30Z","updated_at":"2015-05-01T05:29:34Z","pushed_at":"2015-08-04T06:50:22Z","git_url":"git://github.com/readdle/fqdb.git","ssh_url":"git@github.com:readdle/fqdb.git","clone_url":"https://github.com/readdle/fqdb.git","svn_url":"https://github.com/readdle/fqdb","homepage":"","size":381,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"readdle:master","ref":"master","sha":"6135e5f49c7b1bba8261ae9e36929b68fcda695d","user":{"login":"readdle","id":4190811,"avatar_url":"https://avatars.githubusercontent.com/u/4190811?v=3","gravatar_id":"","url":"https://api.github.com/users/readdle","html_url":"https://github.com/readdle","followers_url":"https://api.github.com/users/readdle/followers","following_url":"https://api.github.com/users/readdle/following{/other_user}","gists_url":"https://api.github.com/users/readdle/gists{/gist_id}","starred_url":"https://api.github.com/users/readdle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/readdle/subscriptions","organizations_url":"https://api.github.com/users/readdle/orgs","repos_url":"https://api.github.com/users/readdle/repos","events_url":"https://api.github.com/users/readdle/events{/privacy}","received_events_url":"https://api.github.com/users/readdle/received_events","type":"Organization","site_admin":false},"repo":{"id":19178114,"name":"fqdb","full_name":"readdle/fqdb","owner":{"login":"readdle","id":4190811,"avatar_url":"https://avatars.githubusercontent.com/u/4190811?v=3","gravatar_id":"","url":"https://api.github.com/users/readdle","html_url":"https://github.com/readdle","followers_url":"https://api.github.com/users/readdle/followers","following_url":"https://api.github.com/users/readdle/following{/other_user}","gists_url":"https://api.github.com/users/readdle/gists{/gist_id}","starred_url":"https://api.github.com/users/readdle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/readdle/subscriptions","organizations_url":"https://api.github.com/users/readdle/orgs","repos_url":"https://api.github.com/users/readdle/repos","events_url":"https://api.github.com/users/readdle/events{/privacy}","received_events_url":"https://api.github.com/users/readdle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/readdle/fqdb","description":"PHP wrapper for PDO","fork":false,"url":"https://api.github.com/repos/readdle/fqdb","forks_url":"https://api.github.com/repos/readdle/fqdb/forks","keys_url":"https://api.github.com/repos/readdle/fqdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/readdle/fqdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/readdle/fqdb/teams","hooks_url":"https://api.github.com/repos/readdle/fqdb/hooks","issue_events_url":"https://api.github.com/repos/readdle/fqdb/issues/events{/number}","events_url":"https://api.github.com/repos/readdle/fqdb/events","assignees_url":"https://api.github.com/repos/readdle/fqdb/assignees{/user}","branches_url":"https://api.github.com/repos/readdle/fqdb/branches{/branch}","tags_url":"https://api.github.com/repos/readdle/fqdb/tags","blobs_url":"https://api.github.com/repos/readdle/fqdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/readdle/fqdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/readdle/fqdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/readdle/fqdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/readdle/fqdb/statuses/{sha}","languages_url":"https://api.github.com/repos/readdle/fqdb/languages","stargazers_url":"https://api.github.com/repos/readdle/fqdb/stargazers","contributors_url":"https://api.github.com/repos/readdle/fqdb/contributors","subscribers_url":"https://api.github.com/repos/readdle/fqdb/subscribers","subscription_url":"https://api.github.com/repos/readdle/fqdb/subscription","commits_url":"https://api.github.com/repos/readdle/fqdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/readdle/fqdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/readdle/fqdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/readdle/fqdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/readdle/fqdb/contents/{+path}","compare_url":"https://api.github.com/repos/readdle/fqdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/readdle/fqdb/merges","archive_url":"https://api.github.com/repos/readdle/fqdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/readdle/fqdb/downloads","issues_url":"https://api.github.com/repos/readdle/fqdb/issues{/number}","pulls_url":"https://api.github.com/repos/readdle/fqdb/pulls{/number}","milestones_url":"https://api.github.com/repos/readdle/fqdb/milestones{/number}","notifications_url":"https://api.github.com/repos/readdle/fqdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/readdle/fqdb/labels{/name}","releases_url":"https://api.github.com/repos/readdle/fqdb/releases{/id}","created_at":"2014-04-26T13:33:30Z","updated_at":"2015-05-01T05:29:34Z","pushed_at":"2015-08-04T06:50:22Z","git_url":"git://github.com/readdle/fqdb.git","ssh_url":"git@github.com:readdle/fqdb.git","clone_url":"https://github.com/readdle/fqdb.git","svn_url":"https://github.com/readdle/fqdb","homepage":"","size":381,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/readdle/fqdb/pulls/11"},"html":{"href":"https://github.com/readdle/fqdb/pull/11"},"issue":{"href":"https://api.github.com/repos/readdle/fqdb/issues/11"},"comments":{"href":"https://api.github.com/repos/readdle/fqdb/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/readdle/fqdb/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/readdle/fqdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/readdle/fqdb/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/readdle/fqdb/statuses/0308e81f11606b399459b0985fc1cdbfd12d3618"}}}}