From d364c1d95b790b3dacfd5be6447f1363da09f95f Mon Sep 17 00:00:00 2001
From: Scott Rigby <srigby@dlc-solutions.com>
Date: Tue, 17 Apr 2012 15:57:47 -0400
Subject: [PATCH] Issue #1219850 by magnusk: bootstrap drupal database for
 sql-query

---
 commands/sql/sql.drush.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/commands/sql/sql.drush.inc b/commands/sql/sql.drush.inc
index af209e1..e38061c 100644
--- a/commands/sql/sql.drush.inc
+++ b/commands/sql/sql.drush.inc
@@ -86,7 +86,7 @@ function sql_drush_command() {
     ) + $options + $db_url,
   );
   $items['sql-query'] = array(
-    'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
+    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_DATABASE,
     'description' => 'Execute a query against the site database.',
     'examples' => array(
       'drush sql-query "SELECT * FROM users WHERE uid=1"' => 'Browse user record. Table prefixes, if used, must be added to table names by hand.',
-- 
1.7.5.4

