Skip to content

Commit

Permalink
Fixes Sqlsqlsrv::creds() declaration compability (#2969)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb authored and weitzman committed Sep 27, 2017
1 parent 3a60f38 commit b22016d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Sql/SqlOracle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Sql/SqlSqlsrv.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b22016d

Please sign in to comment.