{"action":"opened","issue":{"url":"https://api.github.com/repos/drush-ops/drush/issues/1441","labels_url":"https://api.github.com/repos/drush-ops/drush/issues/1441/labels{/name}","comments_url":"https://api.github.com/repos/drush-ops/drush/issues/1441/comments","events_url":"https://api.github.com/repos/drush-ops/drush/issues/1441/events","html_url":"https://github.com/drush-ops/drush/issues/1441","id":87910362,"number":1441,"title":"drush sqlq --db-prefix doesn't work any more.","user":{"login":"greg-1-anderson","id":612191,"avatar_url":"https://avatars.githubusercontent.com/u/612191?v=3","gravatar_id":"","url":"https://api.github.com/users/greg-1-anderson","html_url":"https://github.com/greg-1-anderson","followers_url":"https://api.github.com/users/greg-1-anderson/followers","following_url":"https://api.github.com/users/greg-1-anderson/following{/other_user}","gists_url":"https://api.github.com/users/greg-1-anderson/gists{/gist_id}","starred_url":"https://api.github.com/users/greg-1-anderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg-1-anderson/subscriptions","organizations_url":"https://api.github.com/users/greg-1-anderson/orgs","repos_url":"https://api.github.com/users/greg-1-anderson/repos","events_url":"https://api.github.com/users/greg-1-anderson/events{/privacy}","received_events_url":"https://api.github.com/users/greg-1-anderson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-13T02:36:29Z","updated_at":"2015-06-13T02:36:29Z","closed_at":null,"body":"Drush 6 behavior (correct):\r\n```\r\n$ drush sqlq 'select * from users;'\r\n0|||||||0|0|0|0|||0||\r\n1|admin|...|admin@example.com||||1434161704|1434161729|1434161729|1|UTC||0|admin@example.com|b:0;\r\n$ drush sqlq 'select * from {users};'\r\nError: near line 1: unrecognized token: \"{\"\r\nQuery failed.                                                        [error]\r\n$ drush sqlq 'select * from {users};' --db-prefix\r\n0|||||||0|0|0|0|||0||\r\n1|admin|...|admin@example.com||||1434161704|1434161729|1434161729|1|UTC||0|admin@example.com|b:0;\r\n```\r\n\r\nDrush 7 and Drush 8 behavior:\r\n```\r\n$ drush sqlq 'select * from users;'\r\n0|||||||0|0|0|0|||0||\r\n1|admin|...|admin@example.com||||1434161704|1434161729|1434161729|1|UTC||0|admin@example.com|b:0;\r\n$ drush sqlq 'select * from {users};' \r\nQuery failed.                                                        [error]\r\n$ drush sqlq 'select * from {users};' --db-prefix\r\n\r\nFatal error: Class 'Drush\\Sql\\Database' not found in /Users/ga/.composer/vendor/drush/drush/lib/Drush/Sql/SqlBase.php on line 201\r\n```\r\n\r\nJust leaving this here.  I'm not really fond of db prefixes myself, but ideally this would still work."}}