In statistics.test:
Saved at the very beginning and restored at the very end the value of optimizer_use_stat_tables.
This commit is contained in:
parent
e8497370b9
commit
7895f510a4
@ -1,4 +1,5 @@
|
|||||||
drop table if exists t1,t2;
|
drop table if exists t1,t2;
|
||||||
|
set @save_optimizer_use_stat_tables=@@optimizer_use_stat_tables;
|
||||||
CREATE VIEW table_stat AS
|
CREATE VIEW table_stat AS
|
||||||
SELECT * FROM mysql.table_stat;
|
SELECT * FROM mysql.table_stat;
|
||||||
CREATE VIEW column_stat AS
|
CREATE VIEW column_stat AS
|
||||||
@ -453,3 +454,4 @@ DELETE FROM mysql.index_stat;
|
|||||||
DROP VIEW test.table_stat;
|
DROP VIEW test.table_stat;
|
||||||
DROP VIEW test.column_stat;
|
DROP VIEW test.column_stat;
|
||||||
DROP VIEW test.index_stat;
|
DROP VIEW test.index_stat;
|
||||||
|
set optimizer_use_stat_tables=@save_optimizer_use_stat_tables;
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
drop table if exists t1,t2;
|
drop table if exists t1,t2;
|
||||||
--enable_warnings
|
--enable_warnings
|
||||||
|
|
||||||
|
set @save_optimizer_use_stat_tables=@@optimizer_use_stat_tables;
|
||||||
|
|
||||||
CREATE VIEW table_stat AS
|
CREATE VIEW table_stat AS
|
||||||
SELECT * FROM mysql.table_stat;
|
SELECT * FROM mysql.table_stat;
|
||||||
|
|
||||||
@ -286,5 +288,6 @@ DROP VIEW test.table_stat;
|
|||||||
DROP VIEW test.column_stat;
|
DROP VIEW test.column_stat;
|
||||||
DROP VIEW test.index_stat;
|
DROP VIEW test.index_stat;
|
||||||
|
|
||||||
|
set optimizer_use_stat_tables=@save_optimizer_use_stat_tables;
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user