diff --git a/src/Dibi/Drivers/PdoResult.php b/src/Dibi/Drivers/PdoResult.php index d0e22371..8d38988d 100644 --- a/src/Dibi/Drivers/PdoResult.php +++ b/src/Dibi/Drivers/PdoResult.php @@ -63,6 +63,7 @@ public function seek(int $row): bool */ public function free(): void { + $this->resultSet?->closeCursor(); $this->resultSet = null; } diff --git a/tests/databases.github.ini b/tests/databases.github.ini index 40aeb464..0bfd75e5 100644 --- a/tests/databases.github.ini +++ b/tests/databases.github.ini @@ -81,9 +81,9 @@ database = dibi_test port = 1433 system = sqlsrv -;[sqlsrv pdo] -;driver = pdo -;dsn = "sqlsrv:Server=localhost,1433;Database=dibi_test" -;user = SA -;password = "YourStrong!Passw0rd" -;system = sqlsrv +[sqlsrv pdo] +driver = pdo +dsn = "sqlsrv:Server=localhost,1433;Database=dibi_test" +user = SA +password = "YourStrong!Passw0rd" +system = sqlsrv