diff options
Diffstat (limited to 'mysql-test/suite/sys_vars/t/pfs_events_stages_history_long_size_basic.test')
-rw-r--r-- | mysql-test/suite/sys_vars/t/pfs_events_stages_history_long_size_basic.test | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mysql-test/suite/sys_vars/t/pfs_events_stages_history_long_size_basic.test b/mysql-test/suite/sys_vars/t/pfs_events_stages_history_long_size_basic.test new file mode 100644 index 00000000000..ab17ccf676e --- /dev/null +++ b/mysql-test/suite/sys_vars/t/pfs_events_stages_history_long_size_basic.test @@ -0,0 +1,32 @@ +--source include/not_embedded.inc +--source include/have_perfschema.inc + +# +# Only global +# + +select @@global.performance_schema_events_stages_history_long_size; + +--error ER_INCORRECT_GLOBAL_LOCAL_VAR +select @@session.performance_schema_events_stages_history_long_size; + +show global variables like 'performance_schema_events_stages_history_long_size'; + +show session variables like 'performance_schema_events_stages_history_long_size'; + +select * from information_schema.global_variables + where variable_name='performance_schema_events_stages_history_long_size'; + +select * from information_schema.session_variables + where variable_name='performance_schema_events_stages_history_long_size'; + +# +# Read-only +# + +--error ER_INCORRECT_GLOBAL_LOCAL_VAR +set global performance_schema_events_stages_history_long_size=1; + +--error ER_INCORRECT_GLOBAL_LOCAL_VAR +set session performance_schema_events_stages_history_long_size=1; + |