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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user