1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00

Bug#10109

"INSERT .. SELECT ... ON DUPLICATE KEY UPDATE fails"
  Ensure that check_insert_fields() is only called once when
  doing an INSERT..SELECT
This commit is contained in:
acurtis@xiphis.org
2005-08-07 03:16:15 +01:00
parent de158e94a0
commit 015447b211
5 changed files with 58 additions and 15 deletions

View File

@@ -2877,7 +2877,8 @@ unsent_create_error:
lex->field_list, 0,
lex->update_list, lex->value_list,
lex->duplicates)) &&
(result= new select_insert(insert_table, &lex->field_list,
(result= new select_insert(insert_table, first_local_table,
&dup_tables, &lex->field_list,
&lex->update_list, &lex->value_list,
lex->duplicates, lex->ignore)))
{