Merged in bugfix/PMC-337-A (pull request #6758)

PMC-337-A

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
Approved-by: Paula Quispe <paula.quispe@processmaker.com>
This commit is contained in:
Roly
2019-01-21 21:56:18 +00:00
committed by Julio Cesar Laura Avendaño

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