mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
4e46d8e5bf
fix test cases
15 lines
441 B
Text
15 lines
441 B
Text
DROP TABLE IF EXISTS t1;
|
|
SET GLOBAL userstat=ON;
|
|
CREATE TABLE t1 ( id int(10), PRIMARY KEY (id)) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
|
|
SELECT COUNT(*) FROM t1;
|
|
COUNT(*)
|
|
10
|
|
SELECT ROWS_READ FROM information_schema.table_statistics WHERE TABLE_NAME='t1';
|
|
ROWS_READ
|
|
10
|
|
SELECT ROWS_READ FROM information_schema.index_statistics WHERE TABLE_NAME='t1';
|
|
ROWS_READ
|
|
10
|
|
SET GLOBAL userstat=OFF;
|
|
DROP TABLE t1;
|