mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
0a5e4a0191
Updated tests: cases with bugs or which cannot be run with the cursor-protocol were excluded with "--disable_cursor_protocol"/"--enable_cursor_protocol" Fix for v.10.5
32 lines
1.4 KiB
Text
32 lines
1.4 KiB
Text
--source include/not_msan.inc
|
|
--source include/not_valgrind_build.inc
|
|
|
|
--echo # MDEV-20699 do not cache SP in SHOW CREATE
|
|
--echo # Warmup round, this might allocate some memory for session variable
|
|
--echo # and the output
|
|
|
|
--disable_cursor_protocol
|
|
SELECT VARIABLE_VALUE into @global_mem_used FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
|
SELECT VARIABLE_VALUE into @local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
|
--enable_cursor_protocol
|
|
CREATE PROCEDURE sp0() SELECT 1;
|
|
SHOW CREATE PROCEDURE sp0;
|
|
DROP PROCEDURE sp0;
|
|
|
|
#Check that CREATE/SHOW does not use memory in caches.
|
|
--disable_cursor_protocol
|
|
SELECT VARIABLE_VALUE into @global_mem_used FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
|
SELECT VARIABLE_VALUE into @local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
|
--enable_cursor_protocol
|
|
CREATE PROCEDURE sp1() SELECT 1;
|
|
SHOW CREATE PROCEDURE sp1;
|
|
--disable_cursor_protocol
|
|
SELECT VARIABLE_VALUE-@local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
|
--enable_cursor_protocol
|
|
# FIXME: MDEV-26754 main.sp test fails for embedded server
|
|
#SELECT VARIABLE_VALUE-@global_mem_used FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
|
DROP PROCEDURE sp1;
|
|
|
|
--echo #
|
|
--echo # End of 10.3 tests
|
|
--echo #
|