-
Notifications
You must be signed in to change notification settings - Fork 4k
/
Copy pathtest_status_var_reader.result
48 lines (48 loc) · 1.52 KB
/
test_status_var_reader.result
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# WL#15173: A component service to read status variable values
#
INSTALL COMPONENT "file://component_test_status_var_reader";
# FR5: test that no aggregation is triggered for session-altered variables
# Should return 0 rows
SELECT VARIABLE_NAME, VARIABLE_VALUE, test_get_status_var(VARIABLE_NAME, 0)
FROM performance_schema.global_status
WHERE VARIABLE_VALUE = test_get_status_var(VARIABLE_NAME, 0) AND
VARIABLE_NAME IN (
'Bytes_received',
'Bytes_sent');
# FR2, FR3, FR4.1 Test global status: should return 0 rows
SELECT VARIABLE_NAME, VARIABLE_VALUE, test_get_status_var(VARIABLE_NAME, 0)
FROM performance_schema.global_status
WHERE VARIABLE_VALUE <> test_get_status_var(VARIABLE_NAME, 0) AND
VARIABLE_NAME NOT IN (
'Bytes_received',
'Bytes_sent',
'Handler_commit',
'Handler_external_lock',
'Handler_write',
'Handler_read_key',
'Handler_read_next',
'Handler_read_rnd_next',
'Created_tmp_disk_tables',
'Created_tmp_tables',
'Handler_read_first',
'Com_stmt_reprepare');
# FR4 Test session status: should return 0 rows
SELECT VARIABLE_NAME, VARIABLE_VALUE, test_get_status_var(VARIABLE_NAME, 1)
FROM performance_schema.session_status
WHERE VARIABLE_VALUE <> test_get_status_var(VARIABLE_NAME, 1) AND
VARIABLE_NAME NOT IN (
'Bytes_received',
'Bytes_sent',
'Handler_commit',
'Handler_external_lock',
'Handler_write',
'Handler_read_key',
'Handler_read_next',
'Handler_read_rnd_next',
'Created_tmp_disk_tables',
'Created_tmp_tables',
'Handler_read_first',
'Com_stmt_reprepare');
UNINSTALL COMPONENT "file://component_test_status_var_reader";
# End of 8.0 tests