Debian Codegraph @

mysql-test/suite/sysschema/t/pr_diagnostics.test

raw
1 ########### suite/sysschema/t/pr_diagnostics.test #############
2 # #
3 # Testing of of the sys.diagnostics()) procedure #
4 # #
5 # Creation: #
6 # 2015-07-28 jkrogh Implement this test as part of #
7 # WL#7804 REPORT FOR SUPPORT #
8 # #
9 ###############################################################
10
11 -- source include/not_embedded.inc
12
13 # Sanity check that the procedure completes two iterations with full debug,
14 # raw output, and Information Schema table outputs without generating
15 # any warnings.
16
17 --disable_result_log
18 SET @sys.debug_dbug = 'ON',
19 @sys.diagnostics.allow_i_s_tables = 'ON',
20 @sys.diagnostics.include_raw = 'ON';
21
22 CALL sys.diagnostics(4, 2, 'full');
23
24 SET @sys.debug_dbug = 'OFF',
25 @sys.diagnostics.allow_i_s_tables = 'OFF',
26 @sys.diagnostics.include_raw = 'OFF';
27 --enable_result_log
28
29 # Check input variable validation
30 -- error S45000
31 CALL sys.diagnostics(0, 0, 'full');
32 -- error S45000
33 CALL sys.diagnostics(2, 0, 'full');
34 -- error S45000
35 CALL sys.diagnostics(1, 2, 'full');