summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index 6f5ff4775ac..2ce4a7e8e39 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -1620,7 +1620,7 @@ int mysql_insert_select_prepare(THD *thd)
SELECT_LEX do not belong to INSERT statement, so we can't add WHERE
clasue if table is VIEW
*/
- table_list->no_where_clause= 1;
+ lex->query_tables->no_where_clause= 1;
if (mysql_prepare_insert_check_table(thd, lex->query_tables,
lex->field_list,
&lex->select_lex.where))