postmerge fix

This commit is contained in:
bell@sanja.is.com.ua 2004-09-06 08:27:18 +03:00
parent 6d8e178523
commit fa8d44b63b

View file

@ -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))