From b22016d4337bfc01fd8fe7eabbe9172caf06e3a2 Mon Sep 17 00:00:00 2001 From: Rafal Date: Thu, 28 Sep 2017 00:11:59 +0100 Subject: [PATCH] Fixes Sqlsqlsrv::creds() declaration compability (#2969) --- src/Sql/SqlOracle.php | 2 +- src/Sql/SqlSqlsrv.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sql/SqlOracle.php b/src/Sql/SqlOracle.php index 0953361263..f83f9eac0c 100644 --- a/src/Sql/SqlOracle.php +++ b/src/Sql/SqlOracle.php @@ -22,7 +22,7 @@ public function command() return $command; } - public function creds() + public function creds($hide_password = true) { return ' ' . $this->dbSpec['username'] . '/' . $this->dbSpec['password'] . ($this->dbSpec['host'] == 'USETNS' ? '@' . $this->dbSpec['database'] : '@//' . $this->dbSpec['host'] . ':' . ($db_spec['port'] ? $db_spec['port'] : '1521') . '/' . $this->dbSpec['database']); } diff --git a/src/Sql/SqlSqlsrv.php b/src/Sql/SqlSqlsrv.php index 1d660d13b2..05482e2817 100644 --- a/src/Sql/SqlSqlsrv.php +++ b/src/Sql/SqlSqlsrv.php @@ -13,7 +13,7 @@ public function command() return 'sqlcmd'; } - public function creds() + public function creds($hide_password = true) { // Some drush commands (e.g. site-install) want to connect to the // server, but not the database. Connect to the built-in database.