Skip to content

Commit 056a033

Browse files
authored
[8.x] fix SQL Server command generation (#35317)
* fix SQL Server command generation * style fixes from StyleCI
1 parent 740a0fa commit 056a033

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Illuminate/Database/Console/DbCommand.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ protected function getSqliteArguments(array $connection)
155155
*/
156156
protected function getSqlsrvArguments(array $connection)
157157
{
158-
return $this->getOptionalArguments([
159-
'database' => '-d '.$connection['database'],
160-
'username' => '-U '.$connection['username'],
161-
'password' => '-P '.$connection['password'],
162-
'host' => '-S tcp:'.$connection['host']
163-
.($connection['port'] ? ','.$connection['port'] : ''),
164-
], $connection);
158+
return array_merge(...$this->getOptionalArguments([
159+
'database' => ['-d', $connection['database']],
160+
'username' => ['-U', $connection['username']],
161+
'password' => ['-P', $connection['password']],
162+
'host' => ['-S', 'tcp:'.$connection['host']
163+
.($connection['port'] ? ','.$connection['port'] : ''), ],
164+
], $connection));
165165
}
166166

167167
/**

0 commit comments

Comments
 (0)