mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Make tests pass
- Fix bad tests in statistics_json test: make them meaningful and make them work on windows - Fix analyze_debug.test: correctly handle errors during ANALYZE
This commit is contained in:
@ -3174,22 +3174,12 @@ Percentage 0.0 99.9 50 JSON_HB {
|
||||
"99.9"
|
||||
]
|
||||
}
|
||||
explain extended select * from Country where 'Code' between 'BBC' and 'GGG';
|
||||
id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
1 SIMPLE Country ALL NULL NULL NULL NULL 239 100.00
|
||||
Warnings:
|
||||
Note 1003 select `world`.`Country`.`Code` AS `Code`,`world`.`Country`.`Name` AS `Name`,`world`.`Country`.`SurfaceArea` AS `SurfaceArea`,`world`.`Country`.`Population` AS `Population`,`world`.`Country`.`Capital` AS `Capital` from `world`.`Country` where 1
|
||||
analyze select * from Country where 'Code' between 'BBC' and 'GGG';
|
||||
analyze select * from Country use index () where Code between 'BBC' and 'GGG';
|
||||
id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
|
||||
1 SIMPLE Country ALL NULL NULL NULL NULL 239 239.00 100.00 100.00
|
||||
explain extended select * from Country where 'Code' < 'BBC';
|
||||
id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
|
||||
Warnings:
|
||||
Note 1003 select `world`.`Country`.`Code` AS `Code`,`world`.`Country`.`Name` AS `Name`,`world`.`Country`.`SurfaceArea` AS `SurfaceArea`,`world`.`Country`.`Population` AS `Population`,`world`.`Country`.`Capital` AS `Capital` from `world`.`Country` where 0
|
||||
analyze select * from Country where 'Code' < 'BBC';
|
||||
1 SIMPLE Country ALL NULL NULL NULL NULL 239 239.00 25.49 25.52 Using where
|
||||
analyze select * from Country use index () where Code < 'BBC';
|
||||
id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
|
||||
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
|
||||
1 SIMPLE Country ALL NULL NULL NULL NULL 239 239.00 5.88 7.11 Using where
|
||||
set histogram_type=@save_histogram_type;
|
||||
set histogram_size=@save_histogram_size;
|
||||
DROP SCHEMA world;
|
||||
|
Reference in New Issue
Block a user