From 00654b8a06905e9480bd586bbba230b7da297b1c Mon Sep 17 00:00:00 2001 From: Ulf Wendel Date: Thu, 22 Oct 2009 16:05:33 +0000 Subject: [PATCH] Fixing stats, updating test to accept new stats --- ext/mysqli/tests/mysqli_get_client_stats.phpt | 6 +++++- 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") }, -- 2.40.0