1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

do not mark the table as analyzed unless all the key parts are REALLY analyzed.

This commit is contained in:
serg@sergbook.mysql.com
2003-04-23 00:53:07 +04:00
parent c7891fe9bc
commit ae51f04564
3 changed files with 138 additions and 4 deletions

View File

@ -115,3 +115,19 @@ alter table t1 rename t2;
alter table t2 rename t1, add c char(10) comment "no comment";
show columns from t1;
drop table t1;
# implicit analyze
create table t1 (a int, b int);
let $1=100;
while ($1)
{
eval insert into t1 values(1,$1), (2,$1), (3, $1);
dec $1;
}
alter table t1 add unique (a,b), add key (b);
show keys from t1;
analyze table t1;
show keys from t1;
drop table t1;