From c8abf3e6de5b84b1ab028116a040d0dcc1d19262 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 17 Feb 2014 11:09:40 +0100 Subject: [PATCH] don't open and fill all I_S tables for SELECT * FROM I_S.TRIGGERS --- sql/sql_show.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sql/sql_show.cc b/sql/sql_show.cc index acd67f807ca..91e1693fb94 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -4514,6 +4514,10 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond) table_name, with_i_schema)) continue; } + else if (schema_table_idx == SCH_TRIGGERS && with_i_schema) + { + continue; + } else { if (!(table_open_method & ~OPEN_FRM_ONLY) &&