{"action":"created","comment":{"url":"https://api.github.com/repos/mysqljs/mysql/pulls/comments/167760593","pull_request_review_id":96025042,"id":167760593,"diff_hunk":"@@ -0,0 +1,15 @@\n+module.exports = ComInitDbPacket;\n+function ComInitDbPacket(database_name) {\n+  this.command = 0x02;\n+  this.database_name     = database_name;\n+}\n+\n+ComInitDbPacket.prototype.write = function(writer) {","path":"lib/protocol/packets/ComInitDbPacket.js","position":7,"original_position":7,"commit_id":"46be119f25c77fb0c49ae11f103bcc891d7726a8","original_commit_id":"46be119f25c77fb0c49ae11f103bcc891d7726a8","user":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars3.githubusercontent.com/u/67512?v=4","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"body":"Please add a function name :+1:","created_at":"2018-02-13T04:54:26Z","updated_at":"2018-02-13T04:56:16Z","html_url":"https://github.com/mysqljs/mysql/pull/1937#discussion_r167760593","pull_request_url":"https://api.github.com/repos/mysqljs/mysql/pulls/1937","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/mysqljs/mysql/pulls/comments/167760593"},"html":{"href":"https://github.com/mysqljs/mysql/pull/1937#discussion_r167760593"},"pull_request":{"href":"https://api.github.com/repos/mysqljs/mysql/pulls/1937"}}},"pull_request":{"url":"https://api.github.com/repos/mysqljs/mysql/pulls/1937","id":168742929,"html_url":"https://github.com/mysqljs/mysql/pull/1937","diff_url":"https://github.com/mysqljs/mysql/pull/1937.diff","patch_url":"https://github.com/mysqljs/mysql/pull/1937.patch","issue_url":"https://api.github.com/repos/mysqljs/mysql/issues/1937","number":1937,"state":"open","locked":false,"title":"Added support for COM_INIT_DB in FakeServer.js","user":{"login":"MayamaTakeshi","id":5127023,"avatar_url":"https://avatars3.githubusercontent.com/u/5127023?v=4","gravatar_id":"","url":"https://api.github.com/users/MayamaTakeshi","html_url":"https://github.com/MayamaTakeshi","followers_url":"https://api.github.com/users/MayamaTakeshi/followers","following_url":"https://api.github.com/users/MayamaTakeshi/following{/other_user}","gists_url":"https://api.github.com/users/MayamaTakeshi/gists{/gist_id}","starred_url":"https://api.github.com/users/MayamaTakeshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MayamaTakeshi/subscriptions","organizations_url":"https://api.github.com/users/MayamaTakeshi/orgs","repos_url":"https://api.github.com/users/MayamaTakeshi/repos","events_url":"https://api.github.com/users/MayamaTakeshi/events{/privacy}","received_events_url":"https://api.github.com/users/MayamaTakeshi/received_events","type":"User","site_admin":false},"body":"Hi,\r\nI use FakeServer.js to do automatic regression test generation for some applications that I was assigned to but that the previous devs didn't bother to write functional tests to.\r\nOne of such applications issued a COM_INIT_DB command that FakeServer.js doesn't support which was added in this commit.\r\n","created_at":"2018-02-13T03:01:40Z","updated_at":"2018-02-13T04:56:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcddfbe0638e8e39e4a665694ec777ad0e218489","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":835810074,"url":"https://api.github.com/repos/mysqljs/mysql/labels/needs%20docs","name":"needs docs","color":"f7c6c7","default":false},{"id":179596774,"url":"https://api.github.com/repos/mysqljs/mysql/labels/needs%20tests","name":"needs tests","color":"f7c6c7","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mysqljs/mysql/pulls/1937/commits","review_comments_url":"https://api.github.com/repos/mysqljs/mysql/pulls/1937/comments","review_comment_url":"https://api.github.com/repos/mysqljs/mysql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mysqljs/mysql/issues/1937/comments","statuses_url":"https://api.github.com/repos/mysqljs/mysql/statuses/46be119f25c77fb0c49ae11f103bcc891d7726a8","head":{"label":"MayamaTakeshi:master","ref":"master","sha":"46be119f25c77fb0c49ae11f103bcc891d7726a8","user":{"login":"MayamaTakeshi","id":5127023,"avatar_url":"https://avatars3.githubusercontent.com/u/5127023?v=4","gravatar_id":"","url":"https://api.github.com/users/MayamaTakeshi","html_url":"https://github.com/MayamaTakeshi","followers_url":"https://api.github.com/users/MayamaTakeshi/followers","following_url":"https://api.github.com/users/MayamaTakeshi/following{/other_user}","gists_url":"https://api.github.com/users/MayamaTakeshi/gists{/gist_id}","starred_url":"https://api.github.com/users/MayamaTakeshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MayamaTakeshi/subscriptions","organizations_url":"https://api.github.com/users/MayamaTakeshi/orgs","repos_url":"https://api.github.com/users/MayamaTakeshi/repos","events_url":"https://api.github.com/users/MayamaTakeshi/events{/privacy}","received_events_url":"https://api.github.com/users/MayamaTakeshi/received_events","type":"User","site_admin":false},"repo":{"id":114343482,"name":"mysql","full_name":"MayamaTakeshi/mysql","owner":{"login":"MayamaTakeshi","id":5127023,"avatar_url":"https://avatars3.githubusercontent.com/u/5127023?v=4","gravatar_id":"","url":"https://api.github.com/users/MayamaTakeshi","html_url":"https://github.com/MayamaTakeshi","followers_url":"https://api.github.com/users/MayamaTakeshi/followers","following_url":"https://api.github.com/users/MayamaTakeshi/following{/other_user}","gists_url":"https://api.github.com/users/MayamaTakeshi/gists{/gist_id}","starred_url":"https://api.github.com/users/MayamaTakeshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MayamaTakeshi/subscriptions","organizations_url":"https://api.github.com/users/MayamaTakeshi/orgs","repos_url":"https://api.github.com/users/MayamaTakeshi/repos","events_url":"https://api.github.com/users/MayamaTakeshi/events{/privacy}","received_events_url":"https://api.github.com/users/MayamaTakeshi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MayamaTakeshi/mysql","description":"A pure node.js JavaScript Client implementing the MySql protocol.","fork":true,"url":"https://api.github.com/repos/MayamaTakeshi/mysql","forks_url":"https://api.github.com/repos/MayamaTakeshi/mysql/forks","keys_url":"https://api.github.com/repos/MayamaTakeshi/mysql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MayamaTakeshi/mysql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MayamaTakeshi/mysql/teams","hooks_url":"https://api.github.com/repos/MayamaTakeshi/mysql/hooks","issue_events_url":"https://api.github.com/repos/MayamaTakeshi/mysql/issues/events{/number}","events_url":"https://api.github.com/repos/MayamaTakeshi/mysql/events","assignees_url":"https://api.github.com/repos/MayamaTakeshi/mysql/assignees{/user}","branches_url":"https://api.github.com/repos/MayamaTakeshi/mysql/branches{/branch}","tags_url":"https://api.github.com/repos/MayamaTakeshi/mysql/tags","blobs_url":"https://api.github.com/repos/MayamaTakeshi/mysql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MayamaTakeshi/mysql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MayamaTakeshi/mysql/git/refs{/sha}","trees_url":"https://api.github.com/repos/MayamaTakeshi/mysql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MayamaTakeshi/mysql/statuses/{sha}","languages_url":"https://api.github.com/repos/MayamaTakeshi/mysql/languages","stargazers_url":"https://api.github.com/repos/MayamaTakeshi/mysql/stargazers","contributors_url":"https://api.github.com/repos/MayamaTakeshi/mysql/contributors","subscribers_url":"https://api.github.com/repos/MayamaTakeshi/mysql/subscribers","subscription_url":"https://api.github.com/repos/MayamaTakeshi/mysql/subscription","commits_url":"https://api.github.com/repos/MayamaTakeshi/mysql/commits{/sha}","git_commits_url":"https://api.github.com/repos/MayamaTakeshi/mysql/git/commits{/sha}","comments_url":"https://api.github.com/repos/MayamaTakeshi/mysql/comments{/number}","issue_comment_url":"https://api.github.com/repos/MayamaTakeshi/mysql/issues/comments{/number}","contents_url":"https://api.github.com/repos/MayamaTakeshi/mysql/contents/{+path}","compare_url":"https://api.github.com/repos/MayamaTakeshi/mysql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MayamaTakeshi/mysql/merges","archive_url":"https://api.github.com/repos/MayamaTakeshi/mysql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MayamaTakeshi/mysql/downloads","issues_url":"https://api.github.com/repos/MayamaTakeshi/mysql/issues{/number}","pulls_url":"https://api.github.com/repos/MayamaTakeshi/mysql/pulls{/number}","milestones_url":"https://api.github.com/repos/MayamaTakeshi/mysql/milestones{/number}","notifications_url":"https://api.github.com/repos/MayamaTakeshi/mysql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MayamaTakeshi/mysql/labels{/name}","releases_url":"https://api.github.com/repos/MayamaTakeshi/mysql/releases{/id}","deployments_url":"https://api.github.com/repos/MayamaTakeshi/mysql/deployments","created_at":"2017-12-15T07:59:55Z","updated_at":"2017-12-15T07:59:58Z","pushed_at":"2018-02-13T00:27:11Z","git_url":"git://github.com/MayamaTakeshi/mysql.git","ssh_url":"git@github.com:MayamaTakeshi/mysql.git","clone_url":"https://github.com/MayamaTakeshi/mysql.git","svn_url":"https://github.com/MayamaTakeshi/mysql","homepage":"","size":2307,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"mysqljs:master","ref":"master","sha":"3f371ca18a46150fc1fe1b8bb31a099b9f62f2fb","user":{"login":"mysqljs","id":18713232,"avatar_url":"https://avatars0.githubusercontent.com/u/18713232?v=4","gravatar_id":"","url":"https://api.github.com/users/mysqljs","html_url":"https://github.com/mysqljs","followers_url":"https://api.github.com/users/mysqljs/followers","following_url":"https://api.github.com/users/mysqljs/following{/other_user}","gists_url":"https://api.github.com/users/mysqljs/gists{/gist_id}","starred_url":"https://api.github.com/users/mysqljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysqljs/subscriptions","organizations_url":"https://api.github.com/users/mysqljs/orgs","repos_url":"https://api.github.com/users/mysqljs/repos","events_url":"https://api.github.com/users/mysqljs/events{/privacy}","received_events_url":"https://api.github.com/users/mysqljs/received_events","type":"Organization","site_admin":false},"repo":{"id":805461,"name":"mysql","full_name":"mysqljs/mysql","owner":{"login":"mysqljs","id":18713232,"avatar_url":"https://avatars0.githubusercontent.com/u/18713232?v=4","gravatar_id":"","url":"https://api.github.com/users/mysqljs","html_url":"https://github.com/mysqljs","followers_url":"https://api.github.com/users/mysqljs/followers","following_url":"https://api.github.com/users/mysqljs/following{/other_user}","gists_url":"https://api.github.com/users/mysqljs/gists{/gist_id}","starred_url":"https://api.github.com/users/mysqljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysqljs/subscriptions","organizations_url":"https://api.github.com/users/mysqljs/orgs","repos_url":"https://api.github.com/users/mysqljs/repos","events_url":"https://api.github.com/users/mysqljs/events{/privacy}","received_events_url":"https://api.github.com/users/mysqljs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysqljs/mysql","description":"A pure node.js JavaScript Client implementing the MySql protocol.","fork":false,"url":"https://api.github.com/repos/mysqljs/mysql","forks_url":"https://api.github.com/repos/mysqljs/mysql/forks","keys_url":"https://api.github.com/repos/mysqljs/mysql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysqljs/mysql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysqljs/mysql/teams","hooks_url":"https://api.github.com/repos/mysqljs/mysql/hooks","issue_events_url":"https://api.github.com/repos/mysqljs/mysql/issues/events{/number}","events_url":"https://api.github.com/repos/mysqljs/mysql/events","assignees_url":"https://api.github.com/repos/mysqljs/mysql/assignees{/user}","branches_url":"https://api.github.com/repos/mysqljs/mysql/branches{/branch}","tags_url":"https://api.github.com/repos/mysqljs/mysql/tags","blobs_url":"https://api.github.com/repos/mysqljs/mysql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysqljs/mysql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysqljs/mysql/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysqljs/mysql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysqljs/mysql/statuses/{sha}","languages_url":"https://api.github.com/repos/mysqljs/mysql/languages","stargazers_url":"https://api.github.com/repos/mysqljs/mysql/stargazers","contributors_url":"https://api.github.com/repos/mysqljs/mysql/contributors","subscribers_url":"https://api.github.com/repos/mysqljs/mysql/subscribers","subscription_url":"https://api.github.com/repos/mysqljs/mysql/subscription","commits_url":"https://api.github.com/repos/mysqljs/mysql/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysqljs/mysql/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysqljs/mysql/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysqljs/mysql/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysqljs/mysql/contents/{+path}","compare_url":"https://api.github.com/repos/mysqljs/mysql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysqljs/mysql/merges","archive_url":"https://api.github.com/repos/mysqljs/mysql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysqljs/mysql/downloads","issues_url":"https://api.github.com/repos/mysqljs/mysql/issues{/number}","pulls_url":"https://api.github.com/repos/mysqljs/mysql/pulls{/number}","milestones_url":"https://api.github.com/repos/mysqljs/mysql/milestones{/number}","notifications_url":"https://api.github.com/repos/mysqljs/mysql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysqljs/mysql/labels{/name}","releases_url":"https://api.github.com/repos/mysqljs/mysql/releases{/id}","deployments_url":"https://api.github.com/repos/mysqljs/mysql/deployments","created_at":"2010-07-29T14:58:13Z","updated_at":"2018-02-13T03:10:16Z","pushed_at":"2018-02-13T03:01:41Z","git_url":"git://github.com/mysqljs/mysql.git","ssh_url":"git@github.com:mysqljs/mysql.git","clone_url":"https://github.com/mysqljs/mysql.git","svn_url":"https://github.com/mysqljs/mysql","homepage":"","size":2304,"stargazers_count":11248,"watchers_count":11248,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1682,"mirror_url":null,"archived":false,"open_issues_count":122,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1682,"open_issues":122,"watchers":11248,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mysqljs/mysql/pulls/1937"},"html":{"href":"https://github.com/mysqljs/mysql/pull/1937"},"issue":{"href":"https://api.github.com/repos/mysqljs/mysql/issues/1937"},"comments":{"href":"https://api.github.com/repos/mysqljs/mysql/issues/1937/comments"},"review_comments":{"href":"https://api.github.com/repos/mysqljs/mysql/pulls/1937/comments"},"review_comment":{"href":"https://api.github.com/repos/mysqljs/mysql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mysqljs/mysql/pulls/1937/commits"},"statuses":{"href":"https://api.github.com/repos/mysqljs/mysql/statuses/46be119f25c77fb0c49ae11f103bcc891d7726a8"}},"author_association":"NONE"}}
{"actor":{"display_login":"dougwilson"}}