diff options
| author | Ulf Wendel <uw@php.net> | 2009-10-22 16:05:33 +0000 |
|---|---|---|
| committer | Ulf Wendel <uw@php.net> | 2009-10-22 16:05:33 +0000 |
| commit | 277846d23ce8d5fc2b470c273025592d8067e812 (patch) | |
| tree | 264c0139ad54addbae89b31ce3baf65cd68888c6 /ext | |
| parent | b39c5e2332e8cfb9c56456f5b67afef126782342 (diff) | |
| download | php-git-277846d23ce8d5fc2b470c273025592d8067e812.tar.gz | |
Fixing stats, updating test to accept new stats
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/mysqli/tests/mysqli_get_client_stats.phpt | 6 | ||||
| -rw-r--r-- | ext/mysqlnd/mysqlnd_statistics.c | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/ext/mysqli/tests/mysqli_get_client_stats.phpt b/ext/mysqli/tests/mysqli_get_client_stats.phpt index da1012ab48..74c0cc800b 100644 --- a/ext/mysqli/tests/mysqli_get_client_stats.phpt +++ b/ext/mysqli/tests/mysqli_get_client_stats.phpt @@ -887,7 +887,7 @@ if (!mysqli_query($link, "DROP SERVER IF EXISTS myself")) mysqli_close($link); ?> --EXPECTF-- -array(150) { +array(152) { [%u|b%"bytes_sent"]=> %unicode|string%(1) "0" [%u|b%"bytes_received"]=> @@ -974,6 +974,10 @@ array(150) { %unicode|string%(1) "0" [%u|b%"rows_fetched_from_client_ps_cursor"]=> %unicode|string%(1) "0" + [%u|b%"rows_affected_normal"]=> + %unicode|string%(1) "0" + [%u|b%"rows_affected_ps"]=> + %unicode|string%(1) "0" [%u|b%"rows_skipped_normal"]=> %unicode|string%(1) "0" [%u|b%"rows_skipped_ps"]=> diff --git a/ext/mysqlnd/mysqlnd_statistics.c b/ext/mysqlnd/mysqlnd_statistics.c index d65c8c1883..ca3967e215 100644 --- a/ext/mysqlnd/mysqlnd_statistics.c +++ b/ext/mysqlnd/mysqlnd_statistics.c @@ -79,7 +79,6 @@ const MYSQLND_STRING mysqlnd_stats_values_names[STAT_LAST] = { STR_W_LEN("rows_affected_normal") }, { STR_W_LEN("rows_affected_ps") }, { STR_W_LEN("rows_skipped_normal") }, - { STR_W_LEN("rows_skipped_normal") }, { STR_W_LEN("rows_skipped_ps") }, { STR_W_LEN("copy_on_write_saved") }, { STR_W_LEN("copy_on_write_performed") }, |
