summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Drumm2010-06-19 01:01:36 (GMT)
committerNeil Drumm2010-06-19 01:01:36 (GMT)
commitf3fa9bcddf4c560a96818eacf14d5f02d6ab9fb0 (patch)
treec9cb591da23d7903f872b258f0450101e60a56fc
parent533c66e8454ccc6227f0630106647e064b04dede (diff)
Use mysqli if we have it for Drupal 6.
-rw-r--r--db/db.drush.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/db.drush.inc b/db/db.drush.inc
index 04e3eac..d35359b 100644
--- a/db/db.drush.inc
+++ b/db/db.drush.inc
@@ -185,7 +185,7 @@ class provisionService_db extends provisionService {
function generate_site_credentials() {
$creds = array();
// replace with service type
- $db_type = drush_get_option('db_type', 'mysql');
+ $db_type = drush_get_option('db_type', function_exists('mysqli_connect') ? 'mysqli' : 'mysql');
// As of Drupal 7 there is no more mysqli type
if (drush_drupal_major_version() >= 7) {
$db_type = ($db_type == 'mysqli') ? 'mysql' : $db_type;