summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r--sql/sp_head.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index 14a57914560..eec59d8a3dd 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -4230,7 +4230,7 @@ sp_head::add_used_tables_to_table_list(THD *thd,
char *tab_buff, *key_buff;
TABLE_LIST *table;
SP_TABLE *stab= (SP_TABLE*) my_hash_element(&m_sptabs, i);
- if (stab->temp)
+ if (stab->temp || stab->lock_type == TL_IGNORE)
continue;
if (!(tab_buff= (char *)thd->calloc(ALIGN_SIZE(sizeof(TABLE_LIST)) *