Commit 307d935e authored by Oleg Smirnov's avatar Oleg Smirnov

MDEV-29858 Missing DBUG_RETURN or DBUG_VOID_RETURN in fill_schema_proc

parent af59b677
...@@ -801,5 +801,9 @@ SHOW STATUS LIKE 'handler_read%next'; ...@@ -801,5 +801,9 @@ SHOW STATUS LIKE 'handler_read%next';
Variable_name Value Variable_name Value
Handler_read_next 1 Handler_read_next 1
Handler_read_rnd_next 2 Handler_read_rnd_next 2
SELECT COUNT(*) FROM information_schema.PARAMETERS
WHERE SPECIFIC_CATALOG = NULL;
COUNT(*)
#
DROP DATABASE i_s_parameters_test; DROP DATABASE i_s_parameters_test;
USE test; USE test;
...@@ -339,6 +339,10 @@ query_vertical SELECT * FROM INFORMATION_SCHEMA.PARAMETERS ...@@ -339,6 +339,10 @@ query_vertical SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
AND SPECIFIC_NAME = 'процедурка'; AND SPECIFIC_NAME = 'процедурка';
SHOW STATUS LIKE 'handler_read%next'; SHOW STATUS LIKE 'handler_read%next';
--replace_column 1 #
SELECT COUNT(*) FROM information_schema.PARAMETERS
WHERE SPECIFIC_CATALOG = NULL;
# Cleanup # Cleanup
DROP DATABASE i_s_parameters_test; DROP DATABASE i_s_parameters_test;
USE test; USE test;
...@@ -6804,7 +6804,7 @@ int fill_schema_proc(THD *thd, TABLE_LIST *tables, COND *cond) ...@@ -6804,7 +6804,7 @@ int fill_schema_proc(THD *thd, TABLE_LIST *tables, COND *cond)
if (get_lookup_field_values(thd, cond, false, tables, &lookup)) if (get_lookup_field_values(thd, cond, false, tables, &lookup))
{ {
// There can be no matching records for the condition // There can be no matching records for the condition
return 0; DBUG_RETURN(0);
} }
start_new_trans new_trans(thd); start_new_trans new_trans(thd);
......
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