| 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/no_valgrind_without_big.inc |
| 12 |
|
| 13 |
# Thread stack overrun in debug mode on sparc |
| 14 |
--source include/not_sparc_debug.inc |
| 15 |
|
| 16 |
# Sanity check that the procedure completes two iterations with full debug, |
| 17 |
# raw output, and Information Schema table outputs without generating |
| 18 |
# any warnings. |
| 19 |
|
| 20 |
--disable_result_log |
| 21 |
SET @sys.debug = 'ON', |
| 22 |
@sys.diagnostics.allow_i_s_tables = 'ON', |
| 23 |
@sys.diagnostics.include_raw = 'ON'; |
| 24 |
|
| 25 |
CALL sys.diagnostics(4, 2, 'full'); |
| 26 |
|
| 27 |
SET @sys.debug = 'OFF', |
| 28 |
@sys.diagnostics.allow_i_s_tables = 'OFF', |
| 29 |
@sys.diagnostics.include_raw = 'OFF'; |
| 30 |
--enable_result_log |
| 31 |
|
| 32 |
# Check input variable validation |
| 33 |
-- error S45000 |
| 34 |
CALL sys.diagnostics(0, 0, 'full'); |
| 35 |
-- error S45000 |
| 36 |
CALL sys.diagnostics(2, 0, 'full'); |
| 37 |
-- error S45000 |
| 38 |
CALL sys.diagnostics(1, 2, 'full'); |