{"action":"created","comment":{"url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/pulls/comments/168924997","pull_request_review_id":97377411,"id":168924997,"diff_hunk":"@@ -2537,7 +2537,11 @@ mysql_stat(MYSQL *mysql)\n int STDCALL\n mysql_ping(MYSQL *mysql)\n {\n-  return ma_simple_command(mysql, COM_PING,0,0,0,0);\n+  int rc;\n+  rc= ma_simple_command(mysql, COM_PING, 0, 0, 0, 0);\n+  if (rc && mysql->options.reconnect)\n+    rc= ma_simple_command(mysql, COM_PING, 0, 0, 0, 0);\n+  return rc;\n }","path":"libmariadb/mariadb_lib.c","position":10,"original_position":10,"commit_id":"80b2ae25bdc05d3455f28b921d941bf965a7ec8d","original_commit_id":"80b2ae25bdc05d3455f28b921d941bf965a7ec8d","user":{"login":"9EOR9","id":7883093,"avatar_url":"https://avatars3.githubusercontent.com/u/7883093?v=4","gravatar_id":"","url":"https://api.github.com/users/9EOR9","html_url":"https://github.com/9EOR9","followers_url":"https://api.github.com/users/9EOR9/followers","following_url":"https://api.github.com/users/9EOR9/following{/other_user}","gists_url":"https://api.github.com/users/9EOR9/gists{/gist_id}","starred_url":"https://api.github.com/users/9EOR9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9EOR9/subscriptions","organizations_url":"https://api.github.com/users/9EOR9/orgs","repos_url":"https://api.github.com/users/9EOR9/repos","events_url":"https://api.github.com/users/9EOR9/events{/privacy}","received_events_url":"https://api.github.com/users/9EOR9/received_events","type":"User","site_admin":false},"body":"I think we should check these error codes:\r\n\r\nCR_SERVER_GONE_ERROR (2006)\r\nCR_SERVER_LOST (2013)","created_at":"2018-02-17T15:44:56Z","updated_at":"2018-02-17T15:44:56Z","html_url":"https://github.com/MariaDB/mariadb-connector-c/pull/40#discussion_r168924997","pull_request_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/pulls/40","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/MariaDB/mariadb-connector-c/pulls/comments/168924997"},"html":{"href":"https://github.com/MariaDB/mariadb-connector-c/pull/40#discussion_r168924997"},"pull_request":{"href":"https://api.github.com/repos/MariaDB/mariadb-connector-c/pulls/40"}},"in_reply_to_id":168920466},"pull_request":{"url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/pulls/40","id":169779711,"html_url":"https://github.com/MariaDB/mariadb-connector-c/pull/40","diff_url":"https://github.com/MariaDB/mariadb-connector-c/pull/40.diff","patch_url":"https://github.com/MariaDB/mariadb-connector-c/pull/40.patch","issue_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/issues/40","number":40,"state":"closed","locked":false,"title":"10.2 server","user":{"login":"9EOR9","id":7883093,"avatar_url":"https://avatars3.githubusercontent.com/u/7883093?v=4","gravatar_id":"","url":"https://api.github.com/users/9EOR9","html_url":"https://github.com/9EOR9","followers_url":"https://api.github.com/users/9EOR9/followers","following_url":"https://api.github.com/users/9EOR9/following{/other_user}","gists_url":"https://api.github.com/users/9EOR9/gists{/gist_id}","starred_url":"https://api.github.com/users/9EOR9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9EOR9/subscriptions","organizations_url":"https://api.github.com/users/9EOR9/orgs","repos_url":"https://api.github.com/users/9EOR9/repos","events_url":"https://api.github.com/users/9EOR9/events{/privacy}","received_events_url":"https://api.github.com/users/9EOR9/received_events","type":"User","site_admin":false},"body":"Travis and Appveyor test fixes","created_at":"2018-02-17T11:34:52Z","updated_at":"2018-02-17T15:44:56Z","closed_at":"2018-02-17T12:12:28Z","merged_at":"2018-02-17T12:12:28Z","merge_commit_sha":"668757aaa9a55d2bcd806908cb5a8e806cd6dc31","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/pulls/40/commits","review_comments_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/pulls/40/comments","review_comment_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/issues/40/comments","statuses_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/statuses/80b2ae25bdc05d3455f28b921d941bf965a7ec8d","head":{"label":"9EOR9:10.2-server","ref":"10.2-server","sha":"80b2ae25bdc05d3455f28b921d941bf965a7ec8d","user":{"login":"9EOR9","id":7883093,"avatar_url":"https://avatars3.githubusercontent.com/u/7883093?v=4","gravatar_id":"","url":"https://api.github.com/users/9EOR9","html_url":"https://github.com/9EOR9","followers_url":"https://api.github.com/users/9EOR9/followers","following_url":"https://api.github.com/users/9EOR9/following{/other_user}","gists_url":"https://api.github.com/users/9EOR9/gists{/gist_id}","starred_url":"https://api.github.com/users/9EOR9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9EOR9/subscriptions","organizations_url":"https://api.github.com/users/9EOR9/orgs","repos_url":"https://api.github.com/users/9EOR9/repos","events_url":"https://api.github.com/users/9EOR9/events{/privacy}","received_events_url":"https://api.github.com/users/9EOR9/received_events","type":"User","site_admin":false},"repo":{"id":121739223,"name":"mariadb-connector-c","full_name":"9EOR9/mariadb-connector-c","owner":{"login":"9EOR9","id":7883093,"avatar_url":"https://avatars3.githubusercontent.com/u/7883093?v=4","gravatar_id":"","url":"https://api.github.com/users/9EOR9","html_url":"https://github.com/9EOR9","followers_url":"https://api.github.com/users/9EOR9/followers","following_url":"https://api.github.com/users/9EOR9/following{/other_user}","gists_url":"https://api.github.com/users/9EOR9/gists{/gist_id}","starred_url":"https://api.github.com/users/9EOR9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9EOR9/subscriptions","organizations_url":"https://api.github.com/users/9EOR9/orgs","repos_url":"https://api.github.com/users/9EOR9/repos","events_url":"https://api.github.com/users/9EOR9/events{/privacy}","received_events_url":"https://api.github.com/users/9EOR9/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/9EOR9/mariadb-connector-c","description":"MariaDB Connector/C  is used to connect applications developed in C/C++ to MariaDB and MySQL databases.The client library is LGPL licensed.","fork":true,"url":"https://api.github.com/repos/9EOR9/mariadb-connector-c","forks_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/forks","keys_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/keys{/key_id}","collaborators_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/teams","hooks_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/hooks","issue_events_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/issues/events{/number}","events_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/events","assignees_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/assignees{/user}","branches_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/branches{/branch}","tags_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/tags","blobs_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/git/refs{/sha}","trees_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/git/trees{/sha}","statuses_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/statuses/{sha}","languages_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/languages","stargazers_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/stargazers","contributors_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/contributors","subscribers_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/subscribers","subscription_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/subscription","commits_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/commits{/sha}","git_commits_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/git/commits{/sha}","comments_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/comments{/number}","issue_comment_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/issues/comments{/number}","contents_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/contents/{+path}","compare_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/compare/{base}...{head}","merges_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/merges","archive_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/downloads","issues_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/issues{/number}","pulls_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/pulls{/number}","milestones_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/milestones{/number}","notifications_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/labels{/name}","releases_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/releases{/id}","deployments_url":"https://api.github.com/repos/9EOR9/mariadb-connector-c/deployments","created_at":"2018-02-16T10:34:15Z","updated_at":"2018-02-16T10:34:17Z","pushed_at":"2018-02-17T11:23:07Z","git_url":"git://github.com/9EOR9/mariadb-connector-c.git","ssh_url":"git@github.com:9EOR9/mariadb-connector-c.git","clone_url":"https://github.com/9EOR9/mariadb-connector-c.git","svn_url":"https://github.com/9EOR9/mariadb-connector-c","homepage":null,"size":4850,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MariaDB:10.2-server","ref":"10.2-server","sha":"67cc3438a84df9fa3cc0cfbf9ed81242502702da","user":{"login":"MariaDB","id":4739304,"avatar_url":"https://avatars3.githubusercontent.com/u/4739304?v=4","gravatar_id":"","url":"https://api.github.com/users/MariaDB","html_url":"https://github.com/MariaDB","followers_url":"https://api.github.com/users/MariaDB/followers","following_url":"https://api.github.com/users/MariaDB/following{/other_user}","gists_url":"https://api.github.com/users/MariaDB/gists{/gist_id}","starred_url":"https://api.github.com/users/MariaDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MariaDB/subscriptions","organizations_url":"https://api.github.com/users/MariaDB/orgs","repos_url":"https://api.github.com/users/MariaDB/repos","events_url":"https://api.github.com/users/MariaDB/events{/privacy}","received_events_url":"https://api.github.com/users/MariaDB/received_events","type":"Organization","site_admin":false},"repo":{"id":30071587,"name":"mariadb-connector-c","full_name":"MariaDB/mariadb-connector-c","owner":{"login":"MariaDB","id":4739304,"avatar_url":"https://avatars3.githubusercontent.com/u/4739304?v=4","gravatar_id":"","url":"https://api.github.com/users/MariaDB","html_url":"https://github.com/MariaDB","followers_url":"https://api.github.com/users/MariaDB/followers","following_url":"https://api.github.com/users/MariaDB/following{/other_user}","gists_url":"https://api.github.com/users/MariaDB/gists{/gist_id}","starred_url":"https://api.github.com/users/MariaDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MariaDB/subscriptions","organizations_url":"https://api.github.com/users/MariaDB/orgs","repos_url":"https://api.github.com/users/MariaDB/repos","events_url":"https://api.github.com/users/MariaDB/events{/privacy}","received_events_url":"https://api.github.com/users/MariaDB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MariaDB/mariadb-connector-c","description":"MariaDB Connector/C  is used to connect applications developed in C/C++ to MariaDB and MySQL databases.The client library is LGPL licensed.","fork":false,"url":"https://api.github.com/repos/MariaDB/mariadb-connector-c","forks_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/forks","keys_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/teams","hooks_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/hooks","issue_events_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/issues/events{/number}","events_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/events","assignees_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/assignees{/user}","branches_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/branches{/branch}","tags_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/tags","blobs_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/git/refs{/sha}","trees_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/statuses/{sha}","languages_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/languages","stargazers_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/stargazers","contributors_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/contributors","subscribers_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/subscribers","subscription_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/subscription","commits_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/commits{/sha}","git_commits_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/git/commits{/sha}","comments_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/comments{/number}","issue_comment_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/issues/comments{/number}","contents_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/contents/{+path}","compare_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/merges","archive_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/downloads","issues_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/issues{/number}","pulls_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/pulls{/number}","milestones_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/milestones{/number}","notifications_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/labels{/name}","releases_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/releases{/id}","deployments_url":"https://api.github.com/repos/MariaDB/mariadb-connector-c/deployments","created_at":"2015-01-30T12:43:31Z","updated_at":"2018-02-13T15:21:42Z","pushed_at":"2018-02-17T12:12:28Z","git_url":"git://github.com/MariaDB/mariadb-connector-c.git","ssh_url":"git@github.com:MariaDB/mariadb-connector-c.git","clone_url":"https://github.com/MariaDB/mariadb-connector-c.git","svn_url":"https://github.com/MariaDB/mariadb-connector-c","homepage":null,"size":4850,"stargazers_count":74,"watchers_count":74,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":67,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1"},"forks":67,"open_issues":23,"watchers":74,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MariaDB/mariadb-connector-c/pulls/40"},"html":{"href":"https://github.com/MariaDB/mariadb-connector-c/pull/40"},"issue":{"href":"https://api.github.com/repos/MariaDB/mariadb-connector-c/issues/40"},"comments":{"href":"https://api.github.com/repos/MariaDB/mariadb-connector-c/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/MariaDB/mariadb-connector-c/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/MariaDB/mariadb-connector-c/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MariaDB/mariadb-connector-c/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/MariaDB/mariadb-connector-c/statuses/80b2ae25bdc05d3455f28b921d941bf965a7ec8d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"9EOR9"}}