PMC-337-A

This commit is contained in:
Roly Rudy Gutierrez Pinto
2019-01-21 16:22:40 -04:00
parent 595d87d3d1
commit 18b00ee10a

View File

@@ -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');