mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Count number of affected_rows for normal and PS queries
This commit is contained in:
parent
4a7912b9a0
commit
8792edcf76
4 changed files with 15 additions and 1 deletions
|
@ -885,6 +885,10 @@ MYSQLND_METHOD(mysqlnd_conn, query)(MYSQLND *conn, const char *query, unsigned i
|
|||
information from the ok packet. We will fetch it ourselves.
|
||||
*/
|
||||
ret = mysqlnd_query_read_result_set_header(conn, NULL TSRMLS_CC);
|
||||
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…
Add table
Add a link
Reference in a new issue