Skip to content

Commit 46cdc3c

Browse files
authored
Fix transaction attempts counter for sqlsrv (#43176)
This brings back transactions attempts for sqlsrv driver
1 parent 4264f2e commit 46cdc3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/SqlServerConnection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function transaction(Closure $callback, $attempts = 1)
2929
{
3030
for ($a = 1; $a <= $attempts; $a++) {
3131
if ($this->getDriverName() === 'sqlsrv') {
32-
return parent::transaction($callback);
32+
return parent::transaction($callback, $attempts);
3333
}
3434

3535
$this->getPdo()->exec('BEGIN TRAN');

0 commit comments

Comments
 (0)