Skip to content

Commit

Permalink
[8.x] fix SQL Server command generation (#35317)
Browse files Browse the repository at this point in the history
* fix SQL Server command generation

* style fixes from StyleCI
  • Loading branch information
rodrigopedra committed Nov 23, 2020
1 parent 740a0fa commit 056a033
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Illuminate/Database/Console/DbCommand.php
Expand Up @@ -155,13 +155,13 @@ protected function getSqliteArguments(array $connection)
*/
protected function getSqlsrvArguments(array $connection)
{
return $this->getOptionalArguments([
'database' => '-d '.$connection['database'],
'username' => '-U '.$connection['username'],
'password' => '-P '.$connection['password'],
'host' => '-S tcp:'.$connection['host']
.($connection['port'] ? ','.$connection['port'] : ''),
], $connection);
return array_merge(...$this->getOptionalArguments([
'database' => ['-d', $connection['database']],
'username' => ['-U', $connection['username']],
'password' => ['-P', $connection['password']],
'host' => ['-S', 'tcp:'.$connection['host']
.($connection['port'] ? ','.$connection['port'] : ''), ],
], $connection));
}

/**
Expand Down

0 comments on commit 056a033

Please sign in to comment.