summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index a6707620243..18774955f6a 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -1754,10 +1754,8 @@ mysql_execute_command(void)
break;
}
if (!(res=open_and_lock_tables(thd,(TABLE_LIST *)total->first)))
- {
res=mysql_union(thd,lex, select_lex->select_number+1);
- if (res==-1) res=0;
- }
+ close_thread_tables(thd);
break;
}
case SQLCOM_DROP_TABLE: