Merge lp:~percona-dev/percona-server/test_userstat_bug602047 into lp:percona-server/release-5.1.54-12

Proposed by Valentine Gostev
Status: Merged
Approved by: Valentine Gostev
Approved revision: no longer in the source branch.
Merged at revision: 194
Proposed branch: lp:~percona-dev/percona-server/test_userstat_bug602047
Merge into: lp:percona-server/release-5.1.54-12
Diff against target: 31 lines (+22/-0)
2 files modified
mysql-test/userstat_bug602047.result (+13/-0)
mysql-test/userstat_bug602047.test (+9/-0)
To merge this branch: bzr merge lp:~percona-dev/percona-server/test_userstat_bug602047
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Approve
Review via email: mp+48784@code.launchpad.net

This proposal supersedes a proposal from 2011-02-05.

Description of the change

Added test case for userstat patch bug 602047

To post a comment you must log in.
Revision history for this message
Alexey Kopytov (akopytov) wrote :

Looks good to me.

review: Approve
Revision history for this message
Vadim Tkachenko (vadim-tk) wrote :

Should be merged into 5.5.8 too

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'mysql-test/userstat_bug602047.result'
--- mysql-test/userstat_bug602047.result 1970-01-01 00:00:00 +0000
+++ mysql-test/userstat_bug602047.result 2011-02-07 15:13:38 +0000
@@ -0,0 +1,13 @@
1DROP TABLE IF EXISTS t1;
2SET GLOBAL userstat_running=ON;
3CREATE TABLE t1 ( id int(10), PRIMARY KEY (id)) ENGINE=InnoDB;
4INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
5SELECT COUNT(*) FROM t1;
6COUNT(*)
710
8SELECT ROWS_READ FROM information_schema.table_statistics WHERE TABLE_NAME='t1';
9ROWS_READ
1010
11SELECT ROWS_READ FROM information_schema.index_statistics WHERE TABLE_NAME='t1';
12ROWS_READ
1310
014
=== added file 'mysql-test/userstat_bug602047.test'
--- mysql-test/userstat_bug602047.test 1970-01-01 00:00:00 +0000
+++ mysql-test/userstat_bug602047.test 2011-02-07 15:13:38 +0000
@@ -0,0 +1,9 @@
1--disable_warnings
2DROP TABLE IF EXISTS t1;
3--enable_warnings
4SET GLOBAL userstat_running=ON;
5CREATE TABLE t1 ( id int(10), PRIMARY KEY (id)) ENGINE=InnoDB;
6INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
7SELECT COUNT(*) FROM t1;
8SELECT ROWS_READ FROM information_schema.table_statistics WHERE TABLE_NAME='t1';
9SELECT ROWS_READ FROM information_schema.index_statistics WHERE TABLE_NAME='t1';

Subscribers

People subscribed via source and target branches

to all changes: