X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fsrc%2FBoot%2FDrupalBoot.php;fp=vendor%2Fdrush%2Fdrush%2Fsrc%2FBoot%2FDrupalBoot.php;h=b8fb7daa196e8d344fecbd54fca30ea3c1997315;hp=f37d0adf1585d91311de6da7ecb597283beb9043;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/vendor/drush/drush/src/Boot/DrupalBoot.php b/vendor/drush/drush/src/Boot/DrupalBoot.php index f37d0adf1..b8fb7daa1 100644 --- a/vendor/drush/drush/src/Boot/DrupalBoot.php +++ b/vendor/drush/drush/src/Boot/DrupalBoot.php @@ -228,7 +228,7 @@ abstract class DrupalBoot extends BaseBoot $this->logger->warning(dt('The command \'!command\' is required for preflight but cannot be found. Please install it and retry.', ['!command' => $command])); return false; } - if (!$sql->query('SELECT 1;')) { + if (!$sql->query('SELECT 1;', null, drush_bit_bucket())) { $message = dt("Drush was not able to start (bootstrap) the Drupal database.\n"); $message .= dt("Hint: This may occur when Drush is trying to:\n"); $message .= dt(" * bootstrap a site that has not been installed or does not have a configured database. In this case you can select another site with a working database setup by specifying the URI to use with the --uri parameter on the command line. See `drush topic docs-aliases` for details.\n"); @@ -279,7 +279,7 @@ abstract class DrupalBoot extends BaseBoot foreach ((array)$required_tables as $required_table) { $prefix_key = array_key_exists($required_table, $prefix) ? $required_table : 'default'; $table_name = $prefix[$prefix_key] . $required_table; - if (!$sql->alwaysQuery("SELECT 1 FROM $table_name LIMIT 1;")) { + if (!$sql->alwaysQuery("SELECT 1 FROM $table_name LIMIT 1;", null, drush_bit_bucket())) { $this->logger->notice('Missing database table: '. $table_name); return false; }