mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
fix a small bug about affected_rows in the text protocol
This commit is contained in:
parent
dfb0e70844
commit
b51abfb35f
@ -1835,6 +1835,9 @@ MYSQLND_METHOD(mysqlnd_conn, next_result)(MYSQLND * const conn TSRMLS_DC)
|
||||
DBG_INF_FMT("Error from the server : (%u) %s", conn->error_info.error_no, conn->error_info.error);
|
||||
}
|
||||
}
|
||||
if (ret == PASS && conn->last_query_type == QUERY_UPSERT && conn->upsert_status.affected_rows) {
|
||||
MYSQLND_INC_CONN_STATISTIC_W_VALUE(conn->stats, STAT_ROWS_AFFECTED_NORMAL, conn->upsert_status.affected_rows);
|
||||
}
|
||||
|
||||
DBG_RETURN(ret);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user