mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
P_S 5.7.28
This commit is contained in:
110
mysql-test/suite/perfschema/r/show_misc.result
Normal file
110
mysql-test/suite/perfschema/r/show_misc.result
Normal file
@ -0,0 +1,110 @@
|
||||
select @@global.show_compatibility_56 into @show_compatibility_56_save;
|
||||
================================================================================
|
||||
SHOW_COMPATIBILITY_56 = ON
|
||||
================================================================================
|
||||
set global show_compatibility_56 = on;
|
||||
select 1;
|
||||
1
|
||||
1
|
||||
SHOW STATUS LIKE 'Last_query_partial_plans';
|
||||
Variable_name Value
|
||||
Last_query_partial_plans 0
|
||||
select 2;
|
||||
2
|
||||
2
|
||||
SHOW STATUS LIKE 'Last_query_cost';
|
||||
Variable_name Value
|
||||
Last_query_cost 0.000000
|
||||
|
||||
================================================================================
|
||||
SHOW_COMPATIBILITY_56 = OFF
|
||||
================================================================================
|
||||
set global show_compatibility_56 = off;
|
||||
select 1;
|
||||
1
|
||||
1
|
||||
SHOW STATUS LIKE 'Last_query_partial_plans';
|
||||
Variable_name Value
|
||||
Last_query_partial_plans 0
|
||||
select 2;
|
||||
2
|
||||
2
|
||||
SHOW STATUS LIKE 'Last_query_cost';
|
||||
Variable_name Value
|
||||
Last_query_cost 0.000000
|
||||
================================================================================
|
||||
SHOW_COMPATIBILITY_56 = ON
|
||||
================================================================================
|
||||
flush status;
|
||||
set global show_compatibility_56 = on;
|
||||
SHOW STATUS LIKE 'Created_tmp_tables';
|
||||
Variable_name Value
|
||||
Created_tmp_tables 0
|
||||
|
||||
================================================================================
|
||||
SHOW_COMPATIBILITY_56 = OFF
|
||||
================================================================================
|
||||
set global show_compatibility_56 = off;
|
||||
SHOW STATUS LIKE 'Created_tmp_tables';
|
||||
Variable_name Value
|
||||
Created_tmp_tables 0
|
||||
|
||||
================================================================================
|
||||
Bug#21789221 SHOW STATUS FAILS WITH LOCK TABLES AND SHOW_COMPATIBILITY_56=OFF
|
||||
================================================================================
|
||||
Verify that SHOW STATUS and SHOW VARIABLES works under LOCK TABLES mode
|
||||
|
||||
CREATE TABLE test.t1 (s1 INT);
|
||||
LOCK TABLE test.t1 READ;
|
||||
|
||||
SHOW GLOBAL STATUS WHERE VARIABLE_NAME LIKE "foo";
|
||||
Variable_name Value
|
||||
|
||||
SHOW SESSION STATUS WHERE VARIABLE_NAME LIKE "foo";
|
||||
Variable_name Value
|
||||
|
||||
SHOW GLOBAL VARIABLES WHERE VARIABLE_NAME LIKE "foo";
|
||||
Variable_name Value
|
||||
|
||||
SHOW SESSION VARIABLES WHERE VARIABLE_NAME LIKE "foo";
|
||||
Variable_name Value
|
||||
|
||||
UNLOCK TABLES;
|
||||
|
||||
LOCK TABLE test.t1 WRITE;
|
||||
|
||||
SHOW GLOBAL STATUS WHERE VARIABLE_NAME LIKE "foo";
|
||||
Variable_name Value
|
||||
|
||||
SHOW SESSION STATUS WHERE VARIABLE_NAME LIKE "foo";
|
||||
Variable_name Value
|
||||
|
||||
SHOW GLOBAL VARIABLES WHERE VARIABLE_NAME LIKE "foo";
|
||||
Variable_name Value
|
||||
|
||||
SHOW SESSION VARIABLES WHERE VARIABLE_NAME LIKE "foo";
|
||||
Variable_name Value
|
||||
|
||||
UNLOCK TABLES;
|
||||
DROP TABLE test.t1;
|
||||
|
||||
================================================================================
|
||||
Bug#28515475 BOGUS DATA WHEN ORDERING RESULTS FROM VARIABLES_BY_THREAD
|
||||
================================================================================
|
||||
Verify the results from "WHERE variable_name IN(...)", particularly for those
|
||||
variables that are listed after the deprecated variable gtid_executed.
|
||||
The ORDER BY also forces an additional code path through rnd_pos().
|
||||
|
||||
SELECT variable_name FROM performance_schema.variables_by_thread
|
||||
WHERE variable_name IN ('interactive_timeout','net_read_timeout','net_write_timeout','wait_timeout')
|
||||
ORDER BY variable_name;
|
||||
variable_name
|
||||
interactive_timeout
|
||||
net_read_timeout
|
||||
net_write_timeout
|
||||
wait_timeout
|
||||
|
||||
================================================================================
|
||||
CLEAN UP
|
||||
================================================================================
|
||||
set @@global.show_compatibility_56 = @show_compatibility_56_save;
|
Reference in New Issue
Block a user