mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/10294] Fix sql_affectedrows() in mssqlnative driver.
sqlsrv_rows_affected() expects a statement resource, not a connection resource. PHPBB3-10294
This commit is contained in:
parent
efc7aa00cd
commit
c38b083057
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ class dbal_mssqlnative extends dbal
|
||||||
*/
|
*/
|
||||||
function sql_affectedrows()
|
function sql_affectedrows()
|
||||||
{
|
{
|
||||||
return ($this->db_connect_id) ? @sqlsrv_rows_affected($this->db_connect_id) : false;
|
return (!empty($this->query_result)) ? @sqlsrv_rows_affected($this->query_result) : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue