From 18b00ee10a3ea05530317564e13a334f861ed6d9 Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Mon, 21 Jan 2019 16:22:40 -0400 Subject: [PATCH] PMC-337-A --- thirdparty/creole/drivers/mssql/MSSQLConnection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty/creole/drivers/mssql/MSSQLConnection.php b/thirdparty/creole/drivers/mssql/MSSQLConnection.php index 27a08c1fc..cfcf30722 100644 --- a/thirdparty/creole/drivers/mssql/MSSQLConnection.php +++ b/thirdparty/creole/drivers/mssql/MSSQLConnection.php @@ -218,7 +218,7 @@ class MSSQLConnection extends ConnectionCommon implements Connection if (!$result) { throw new SQLException('Could not execute update', print_r(sqlsrv_errors(), true), $sql); } - return (int) sqlsrv_rows_affected($this->dblink); + return (int) sqlsrv_rows_affected($result); } else { if (!mssql_select_db($this->database, $this->dblink)) { throw new SQLException('No database selected');