{"action":"opened","number":2882,"pull_request":{"url":"https://api.github.com/repos/drush-ops/drush/pulls/2882","id":136324125,"html_url":"https://github.com/drush-ops/drush/pull/2882","diff_url":"https://github.com/drush-ops/drush/pull/2882.diff","patch_url":"https://github.com/drush-ops/drush/pull/2882.patch","issue_url":"https://api.github.com/repos/drush-ops/drush/issues/2882","number":2882,"state":"open","locked":false,"title":"fix namespace for Drush command sql-query with option \"--db-prefix\" in use (branch 8.x)","user":{"login":"deminy","id":865547,"avatar_url":"https://avatars0.githubusercontent.com/u/865547?v=4","gravatar_id":"","url":"https://api.github.com/users/deminy","html_url":"https://github.com/deminy","followers_url":"https://api.github.com/users/deminy/followers","following_url":"https://api.github.com/users/deminy/following{/other_user}","gists_url":"https://api.github.com/users/deminy/gists{/gist_id}","starred_url":"https://api.github.com/users/deminy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deminy/subscriptions","organizations_url":"https://api.github.com/users/deminy/orgs","repos_url":"https://api.github.com/users/deminy/repos","events_url":"https://api.github.com/users/deminy/events{/privacy}","received_events_url":"https://api.github.com/users/deminy/received_events","type":"User","site_admin":false},"body":"I ran following command with Drush 8.x:\r\n\r\n> drush.sh sql-query --db-prefix \"TRUNCATE TABLE {file_managed}\"\r\n\r\nand noticed following error message:\r\n\r\n> Error: Class 'Database' not found in .../vendor/drush/drush/lib/Drush/Sql/SqlBase.php on line 204 ...\r\n\r\nThe commit is to fix the issue in branch 8.x. I have another pull request to address the issue for branch master.","created_at":"2017-08-17T18:34:08Z","updated_at":"2017-08-17T18:34:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/drush-ops/drush/pulls/2882/commits","review_comments_url":"https://api.github.com/repos/drush-ops/drush/pulls/2882/comments","review_comment_url":"https://api.github.com/repos/drush-ops/drush/pulls/comments{/number}","comments_url":"https://api.github.com/repos/drush-ops/drush/issues/2882/comments","statuses_url":"https://api.github.com/repos/drush-ops/drush/statuses/b5f172ba71773c812691d9c91304515ad6b3993d","head":{"label":"deminy:8.x","ref":"8.x","sha":"b5f172ba71773c812691d9c91304515ad6b3993d","user":{"login":"deminy","id":865547,"avatar_url":"https://avatars0.githubusercontent.com/u/865547?v=4","gravatar_id":"","url":"https://api.github.com/users/deminy","html_url":"https://github.com/deminy","followers_url":"https://api.github.com/users/deminy/followers","following_url":"https://api.github.com/users/deminy/following{/other_user}","gists_url":"https://api.github.com/users/deminy/gists{/gist_id}","starred_url":"https://api.github.com/users/deminy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deminy/subscriptions","organizations_url":"https://api.github.com/users/deminy/orgs","repos_url":"https://api.github.com/users/deminy/repos","events_url":"https://api.github.com/users/deminy/events{/privacy}","received_events_url":"https://api.github.com/users/deminy/received_events","type":"User","site_admin":false},"repo":{"id":100632845,"name":"drush","full_name":"deminy/drush","owner":{"login":"deminy","id":865547,"avatar_url":"https://avatars0.githubusercontent.com/u/865547?v=4","gravatar_id":"","url":"https://api.github.com/users/deminy","html_url":"https://github.com/deminy","followers_url":"https://api.github.com/users/deminy/followers","following_url":"https://api.github.com/users/deminy/following{/other_user}","gists_url":"https://api.github.com/users/deminy/gists{/gist_id}","starred_url":"https://api.github.com/users/deminy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deminy/subscriptions","organizations_url":"https://api.github.com/users/deminy/orgs","repos_url":"https://api.github.com/users/deminy/repos","events_url":"https://api.github.com/users/deminy/events{/privacy}","received_events_url":"https://api.github.com/users/deminy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deminy/drush","description":"Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.","fork":true,"url":"https://api.github.com/repos/deminy/drush","forks_url":"https://api.github.com/repos/deminy/drush/forks","keys_url":"https://api.github.com/repos/deminy/drush/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deminy/drush/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deminy/drush/teams","hooks_url":"https://api.github.com/repos/deminy/drush/hooks","issue_events_url":"https://api.github.com/repos/deminy/drush/issues/events{/number}","events_url":"https://api.github.com/repos/deminy/drush/events","assignees_url":"https://api.github.com/repos/deminy/drush/assignees{/user}","branches_url":"https://api.github.com/repos/deminy/drush/branches{/branch}","tags_url":"https://api.github.com/repos/deminy/drush/tags","blobs_url":"https://api.github.com/repos/deminy/drush/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deminy/drush/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deminy/drush/git/refs{/sha}","trees_url":"https://api.github.com/repos/deminy/drush/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deminy/drush/statuses/{sha}","languages_url":"https://api.github.com/repos/deminy/drush/languages","stargazers_url":"https://api.github.com/repos/deminy/drush/stargazers","contributors_url":"https://api.github.com/repos/deminy/drush/contributors","subscribers_url":"https://api.github.com/repos/deminy/drush/subscribers","subscription_url":"https://api.github.com/repos/deminy/drush/subscription","commits_url":"https://api.github.com/repos/deminy/drush/commits{/sha}","git_commits_url":"https://api.github.com/repos/deminy/drush/git/commits{/sha}","comments_url":"https://api.github.com/repos/deminy/drush/comments{/number}","issue_comment_url":"https://api.github.com/repos/deminy/drush/issues/comments{/number}","contents_url":"https://api.github.com/repos/deminy/drush/contents/{+path}","compare_url":"https://api.github.com/repos/deminy/drush/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deminy/drush/merges","archive_url":"https://api.github.com/repos/deminy/drush/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deminy/drush/downloads","issues_url":"https://api.github.com/repos/deminy/drush/issues{/number}","pulls_url":"https://api.github.com/repos/deminy/drush/pulls{/number}","milestones_url":"https://api.github.com/repos/deminy/drush/milestones{/number}","notifications_url":"https://api.github.com/repos/deminy/drush/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deminy/drush/labels{/name}","releases_url":"https://api.github.com/repos/deminy/drush/releases{/id}","deployments_url":"https://api.github.com/repos/deminy/drush/deployments","created_at":"2017-08-17T18:20:12Z","updated_at":"2017-08-17T18:20:16Z","pushed_at":"2017-08-17T18:27:32Z","git_url":"git://github.com/deminy/drush.git","ssh_url":"git@github.com:deminy/drush.git","clone_url":"https://github.com/deminy/drush.git","svn_url":"https://github.com/deminy/drush","homepage":"","size":15224,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"drush-ops:8.x","ref":"8.x","sha":"05ae7a7060b9cac3092e0f76b4c7cfd47c638ee7","user":{"login":"drush-ops","id":931201,"avatar_url":"https://avatars3.githubusercontent.com/u/931201?v=4","gravatar_id":"","url":"https://api.github.com/users/drush-ops","html_url":"https://github.com/drush-ops","followers_url":"https://api.github.com/users/drush-ops/followers","following_url":"https://api.github.com/users/drush-ops/following{/other_user}","gists_url":"https://api.github.com/users/drush-ops/gists{/gist_id}","starred_url":"https://api.github.com/users/drush-ops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drush-ops/subscriptions","organizations_url":"https://api.github.com/users/drush-ops/orgs","repos_url":"https://api.github.com/users/drush-ops/repos","events_url":"https://api.github.com/users/drush-ops/events{/privacy}","received_events_url":"https://api.github.com/users/drush-ops/received_events","type":"Organization","site_admin":false},"repo":{"id":3193843,"name":"drush","full_name":"drush-ops/drush","owner":{"login":"drush-ops","id":931201,"avatar_url":"https://avatars3.githubusercontent.com/u/931201?v=4","gravatar_id":"","url":"https://api.github.com/users/drush-ops","html_url":"https://github.com/drush-ops","followers_url":"https://api.github.com/users/drush-ops/followers","following_url":"https://api.github.com/users/drush-ops/following{/other_user}","gists_url":"https://api.github.com/users/drush-ops/gists{/gist_id}","starred_url":"https://api.github.com/users/drush-ops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drush-ops/subscriptions","organizations_url":"https://api.github.com/users/drush-ops/orgs","repos_url":"https://api.github.com/users/drush-ops/repos","events_url":"https://api.github.com/users/drush-ops/events{/privacy}","received_events_url":"https://api.github.com/users/drush-ops/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/drush-ops/drush","description":"Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.","fork":false,"url":"https://api.github.com/repos/drush-ops/drush","forks_url":"https://api.github.com/repos/drush-ops/drush/forks","keys_url":"https://api.github.com/repos/drush-ops/drush/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drush-ops/drush/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drush-ops/drush/teams","hooks_url":"https://api.github.com/repos/drush-ops/drush/hooks","issue_events_url":"https://api.github.com/repos/drush-ops/drush/issues/events{/number}","events_url":"https://api.github.com/repos/drush-ops/drush/events","assignees_url":"https://api.github.com/repos/drush-ops/drush/assignees{/user}","branches_url":"https://api.github.com/repos/drush-ops/drush/branches{/branch}","tags_url":"https://api.github.com/repos/drush-ops/drush/tags","blobs_url":"https://api.github.com/repos/drush-ops/drush/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drush-ops/drush/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drush-ops/drush/git/refs{/sha}","trees_url":"https://api.github.com/repos/drush-ops/drush/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drush-ops/drush/statuses/{sha}","languages_url":"https://api.github.com/repos/drush-ops/drush/languages","stargazers_url":"https://api.github.com/repos/drush-ops/drush/stargazers","contributors_url":"https://api.github.com/repos/drush-ops/drush/contributors","subscribers_url":"https://api.github.com/repos/drush-ops/drush/subscribers","subscription_url":"https://api.github.com/repos/drush-ops/drush/subscription","commits_url":"https://api.github.com/repos/drush-ops/drush/commits{/sha}","git_commits_url":"https://api.github.com/repos/drush-ops/drush/git/commits{/sha}","comments_url":"https://api.github.com/repos/drush-ops/drush/comments{/number}","issue_comment_url":"https://api.github.com/repos/drush-ops/drush/issues/comments{/number}","contents_url":"https://api.github.com/repos/drush-ops/drush/contents/{+path}","compare_url":"https://api.github.com/repos/drush-ops/drush/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drush-ops/drush/merges","archive_url":"https://api.github.com/repos/drush-ops/drush/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drush-ops/drush/downloads","issues_url":"https://api.github.com/repos/drush-ops/drush/issues{/number}","pulls_url":"https://api.github.com/repos/drush-ops/drush/pulls{/number}","milestones_url":"https://api.github.com/repos/drush-ops/drush/milestones{/number}","notifications_url":"https://api.github.com/repos/drush-ops/drush/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drush-ops/drush/labels{/name}","releases_url":"https://api.github.com/repos/drush-ops/drush/releases{/id}","deployments_url":"https://api.github.com/repos/drush-ops/drush/deployments","created_at":"2012-01-16T20:26:51Z","updated_at":"2017-08-16T08:02:32Z","pushed_at":"2017-08-17T18:32:33Z","git_url":"git://github.com/drush-ops/drush.git","ssh_url":"git@github.com:drush-ops/drush.git","clone_url":"https://github.com/drush-ops/drush.git","svn_url":"https://github.com/drush-ops/drush","homepage":"","size":15224,"stargazers_count":1624,"watchers_count":1624,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":829,"mirror_url":null,"open_issues_count":513,"forks":829,"open_issues":513,"watchers":1624,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/drush-ops/drush/pulls/2882"},"html":{"href":"https://github.com/drush-ops/drush/pull/2882"},"issue":{"href":"https://api.github.com/repos/drush-ops/drush/issues/2882"},"comments":{"href":"https://api.github.com/repos/drush-ops/drush/issues/2882/comments"},"review_comments":{"href":"https://api.github.com/repos/drush-ops/drush/pulls/2882/comments"},"review_comment":{"href":"https://api.github.com/repos/drush-ops/drush/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/drush-ops/drush/pulls/2882/commits"},"statuses":{"href":"https://api.github.com/repos/drush-ops/drush/statuses/b5f172ba71773c812691d9c91304515ad6b3993d"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":2,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"deminy"}}