Skip to content

Commit c3b365e

Browse files
jaf2bjdg
authored andcommitted
sqlsrv_configure after sqlsrv_errors
1 parent 4884583 commit c3b365e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Dibi/Drivers/SqlsrvDriver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ public function __construct(array $config)
6969
$info = sqlsrv_errors(SQLSRV_ERR_ERRORS);
7070
throw new Dibi\DriverException($info[0]['message'], $info[0]['code']);
7171
}
72-
if (!isset($config['resource'])) {
73-
sqlsrv_configure('WarningsReturnAsErrors', 1);
74-
}
72+
if (!isset($config['resource'])) {
73+
sqlsrv_configure('WarningsReturnAsErrors', 1);
74+
}
7575
$this->version = sqlsrv_server_info($this->connection)['SQLServerVersion'];
7676
}
7777

0 commit comments

Comments
 (0)