Debian Codegraph @

mysql-test/suite/archive/archive_eits.result

raw
1 drop table if exists t1;
2 #
3 # MDEV-17297: stats.records=0 for a table of Archive engine when it has rows, when we run ANALYZE command
4 #
5 CREATE TABLE t1 (fid INTEGER PRIMARY KEY AUTO_INCREMENT, g POINT)engine=archive;
6 INSERT INTO t1 VALUES
7 (101, PointFromText('POINT(10 10)')),
8 (102, PointFromText('POINT(20 10)')),
9 (103, PointFromText('POINT(20 20)')),
10 (104, PointFromWKB(AsWKB(PointFromText('POINT(10 20)'))));
11 set @tmp1= @@optimizer_use_condition_selectivity;
12 set @tmp2= @@use_stat_tables;
13 set optimizer_use_condition_selectivity=4;
14 set use_stat_tables=PREFERABLY;
15 ANALYZE TABLE t1;
16 Table Op Msg_type Msg_text
17 test.t1 analyze status Engine-independent statistics collected
18 test.t1 analyze note The storage engine for the table doesn't support analyze
19 select * from mysql.table_stats where table_name='t1' and db_name=database();
20 db_name table_name cardinality
21 test t1 4
22 drop table t1;
23 set optimizer_use_condition_selectivity=@tmp1;
24 set use_stat_tables=@tmp2;