1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

fix a nondeterminism in perfschema.statement_program_nesting_event_check test

when selecting from perfschema, filter out statements
used by the test istself in wait_condition.inc, because they,
by design, can be repeated unpredictable number of times.
This commit is contained in:
Sergei Golubchik
2020-03-16 10:33:16 +01:00
parent 17080cbcf0
commit b55d960e43
2 changed files with 2 additions and 4 deletions

View File

@ -19,7 +19,7 @@ TRUNCATE TABLE performance_schema.events_statements_history_long;
SELECT EVENT_NAME, SQL_TEXT, OBJECT_NAME, NESTING_EVENT_TYPE, NESTING_EVENT_LEVEL
FROM performance_schema.events_statements_history_long
WHERE CURRENT_SCHEMA='stored_programs' AND
(SQL_TEXT not like '%count(*) = 1%' OR SQL_TEXT IS NULL)
(SQL_TEXT not like '%count(*) = %' OR SQL_TEXT IS NULL)
ORDER BY OBJECT_NAME,NESTING_EVENT_LEVEL,SQL_TEXT;
TRUNCATE TABLE performance_schema.events_statements_history_long;