mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug #26261:
INSERT uses query_id to verify what fields are mentioned in the fields list of the INSERT command. However the check for that is made after the ON DUPLICATE KEY is processed. This causes all the fields mentioned in ON DUPLICATE KEY to be considered as mentioned in the fields list of INSERT. Moved the check up, right after processing the fields list.
This commit is contained in:
@ -1058,7 +1058,7 @@ static bool mysql_test_insert(Prepared_statement *stmt,
|
||||
|
||||
if (mysql_prepare_insert(thd, table_list, table_list->table,
|
||||
fields, values, update_fields, update_values,
|
||||
duplic, &unused_conds, FALSE))
|
||||
duplic, &unused_conds, FALSE, FALSE, FALSE))
|
||||
goto error;
|
||||
|
||||
value_count= values->elements;
|
||||
|
Reference in New Issue
Block a user