mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-29104 - fix test cases, for compilation without performance schema.
Fix test cases to remove hardcoded expected number for 'handler_next_read' status variable. Apparently, number of rows in I_S.routines depends on whether or not 'sys' schema is loaded, and this depends on whether or not perfschema is compiled in.
This commit is contained in:
@@ -264,6 +264,8 @@ CREATE FUNCTION test_func5 (s CHAR(20)) RETURNS VARCHAR(30)
|
||||
RETURN CONCAT('XYZ, ' ,s);
|
||||
|
||||
|
||||
--let count_routines = `select count(*) from information_schema.routines`
|
||||
|
||||
--echo #
|
||||
--echo # We cannot use the index due to missing condition on SPECIFIC_SCHEMA,
|
||||
--echo # but we will use ROUTINE_NAME for filtering records from mysql.proc
|
||||
@@ -271,6 +273,7 @@ FLUSH STATUS;
|
||||
--replace_column 24 <created> 25 <modified>
|
||||
query_vertical SELECT * FROM INFORMATION_SCHEMA.ROUTINES
|
||||
WHERE ROUTINE_NAME = 'test_func5';
|
||||
--replace_result $count_routines count_routines
|
||||
SHOW STATUS LIKE 'handler_read%next';
|
||||
|
||||
--echo #
|
||||
@@ -281,6 +284,7 @@ FLUSH STATUS;
|
||||
query_vertical SELECT * FROM INFORMATION_SCHEMA.ROUTINES
|
||||
WHERE CONCAT(ROUTINE_SCHEMA) = 'i_s_routines_test'
|
||||
AND ROUTINE_NAME = 'not_existing_proc';
|
||||
--replace_result $count_routines count_routines
|
||||
SHOW STATUS LIKE 'handler_read%next';
|
||||
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user