Current Path : /home/usr.opt/mysql57/mysql-test/suite/innodb/t/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/innodb/t/innodb_stats_table_flag_auto_recalc.test |
# # Test CREATE TABLE ... STATS_AUTO_RECALC=0|1|default # -- source include/no_valgrind_without_big.inc -- source include/have_innodb.inc # include/restart_mysqld.inc does not work in embedded mode -- source include/not_embedded.inc -- vertical_results CREATE TABLE test_ps_auto_recalc (a INT, PRIMARY KEY (a)) ENGINE=INNODB; SHOW CREATE TABLE test_ps_auto_recalc; SELECT create_options FROM information_schema.tables WHERE table_name='test_ps_auto_recalc'; ALTER TABLE test_ps_auto_recalc STATS_AUTO_RECALC=1; # confirm that the flag survives server restart -- source include/restart_mysqld.inc SHOW CREATE TABLE test_ps_auto_recalc; SELECT create_options FROM information_schema.tables WHERE table_name='test_ps_auto_recalc'; DROP TABLE test_ps_auto_recalc; ## CREATE TABLE test_ps_auto_recalc (a INT, PRIMARY KEY (a)) ENGINE=INNODB STATS_AUTO_RECALC=default; SHOW CREATE TABLE test_ps_auto_recalc; SELECT create_options FROM information_schema.tables WHERE table_name='test_ps_auto_recalc'; DROP TABLE test_ps_auto_recalc; ## CREATE TABLE test_ps_auto_recalc (a INT, PRIMARY KEY (a)) ENGINE=INNODB STATS_AUTO_RECALC=0; # confirm that the flag survives server restart -- source include/restart_mysqld.inc SHOW CREATE TABLE test_ps_auto_recalc; SELECT create_options FROM information_schema.tables WHERE table_name='test_ps_auto_recalc'; ALTER TABLE test_ps_auto_recalc STATS_AUTO_RECALC=1; # confirm that the flag survives server restart -- source include/restart_mysqld.inc SHOW CREATE TABLE test_ps_auto_recalc; SELECT create_options FROM information_schema.tables WHERE table_name='test_ps_auto_recalc'; DROP TABLE test_ps_auto_recalc; ## CREATE TABLE test_ps_auto_recalc (a INT, PRIMARY KEY (a)) ENGINE=INNODB STATS_AUTO_RECALC=1; # confirm that the flag survives server restart -- source include/restart_mysqld.inc SHOW CREATE TABLE test_ps_auto_recalc; SELECT create_options FROM information_schema.tables WHERE table_name='test_ps_auto_recalc'; ALTER TABLE test_ps_auto_recalc STATS_AUTO_RECALC=0; # confirm that the flag survives server restart -- source include/restart_mysqld.inc SHOW CREATE TABLE test_ps_auto_recalc; SELECT create_options FROM information_schema.tables WHERE table_name='test_ps_auto_recalc'; DROP TABLE test_ps_auto_recalc;