diff options
author | Andrey Hristov <andrey@php.net> | 2010-12-16 12:56:19 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2010-12-16 12:56:19 +0000 |
commit | b51abfb35fb8303dbf099313b9099763fcc54ea0 (patch) | |
tree | 920126c9a896b55e0fd9b1d68a222db4e7ab5522 /ext | |
parent | dfb0e708440f61737d28e90a3d918eea7afd3682 (diff) | |
download | php-git-b51abfb35fb8303dbf099313b9099763fcc54ea0.tar.gz |
fix a small bug about affected_rows in the text protocol
Diffstat (limited to 'ext')
-rw-r--r-- | ext/mysqlnd/mysqlnd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c index 6405de905a..88a8548ecc 100644 --- a/ext/mysqlnd/mysqlnd.c +++ b/ext/mysqlnd/mysqlnd.c @@ -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); } |