Fixed build failure on SQL Server (sqlsrv)

The regression was introduced by 2b8c40d267b4ac699ea878dcca07332e1697978c.

Fixes #3060.
parent 245377f1
...@@ -309,7 +309,7 @@ class SQLSrvStatement implements IteratorAggregate, Statement ...@@ -309,7 +309,7 @@ class SQLSrvStatement implements IteratorAggregate, Statement
} }
if (isset($args[1])) { if (isset($args[1])) {
$this->defaultFetchClassCtorArgs = (array) $args[2]; $this->defaultFetchClassCtorArgs = (array) $args[1];
} }
return true; return true;
...@@ -370,7 +370,7 @@ class SQLSrvStatement implements IteratorAggregate, Statement ...@@ -370,7 +370,7 @@ class SQLSrvStatement implements IteratorAggregate, Statement
switch ($fetchMode) { switch ($fetchMode) {
case FetchMode::CUSTOM_OBJECT: case FetchMode::CUSTOM_OBJECT:
while (($row = $this->fetch($fetchMode, $args)) !== false) { while (($row = $this->fetch($fetchMode, ...$args)) !== false) {
$rows[] = $row; $rows[] = $row;
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment