-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
…n use (#2882)
- Loading branch information
There are no files selected for viewing
1 comment
on commit 7759930
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks sqlsan on D7.
When I run drush sqlsan I get the following error:
WD php: Error: Class 'Drupal\Core\Database\Database' not found in Drush\Sql\SqlBase->query_prefix() (line 205 of /var/www/html/sites/all/composer/vendor/drush/drush/lib/Drush/Sql/SqlBase.php). [0.28 sec, 13.44 MB] [error] Error: Class 'Drupal\Core\Database\Database' not found in Drush\Sql\SqlBase->query_prefix() (line 205 of /var/www/html/sites/all/composer/vendor/drush/drush/lib/Drush/Sql/SqlBase.php). Drush command terminated abnormally due to an unrecoverable error. [0.28 sec, 13.5 MB]
If you change the include to
use Drupal\Database;
It works in D7.
Change this to use Drupal\Database;
and the above will work with D7.