Commit 02fe9975 authored by Sergei Golubchik's avatar Sergei Golubchik

fix a nondeterminism in perfschema.statement_program_non_nested 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.
parent 121a5e8d
......@@ -174,7 +174,7 @@ SELECT EVENT_NAME, SQL_TEXT, CURRENT_SCHEMA, OBJECT_TYPE, OBJECT_SCHEMA,
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;
EVENT_NAME SQL_TEXT CURRENT_SCHEMA OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME NESTING_EVENT_TYPE NESTING_EVENT_LEVEL
statement/scheduler/event NULL stored_programs NULL NULL NULL NULL 0
......@@ -289,8 +289,6 @@ statement/sql/select SELECT @change stored_programs NULL NULL NULL NULL 0
statement/sql/select SELECT @del stored_programs NULL NULL NULL NULL 0
statement/sql/select SELECT @del stored_programs NULL NULL NULL NULL 0
statement/sql/select SELECT append("Bolly", "wood") stored_programs NULL NULL NULL NULL 0
statement/sql/select SELECT COUNT(*) = 0 FROM information_schema.processlist
WHERE user = 'event_scheduler' stored_programs NULL NULL NULL NULL 0
statement/sql/select SELECT fac(5) stored_programs NULL NULL NULL NULL 0
statement/sql/select SELECT OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME, COUNT_STAR, COUNT_STATEMENTS
FROM performance_schema.events_statements_summary_by_program
......
......@@ -23,7 +23,7 @@ SELECT EVENT_NAME, SQL_TEXT, CURRENT_SCHEMA, OBJECT_TYPE, OBJECT_SCHEMA,
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment