From: Ulf Wendel Date: Thu, 22 Oct 2009 16:05:33 +0000 (+0000) Subject: Fixing stats, updating test to accept new stats X-Git-Tag: php-5.3.2RC1~322 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00654b8a06905e9480bd586bbba230b7da297b1c;p=php Fixing stats, updating test to accept new stats --- 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") },