mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-35769 ER_SQL_DISCOVER_ERROR upon updating vector key column using incorrect value
return as soon as the error status is known. also, init_from_sql_statement_string() cannot be run if thd->is_error(), assert it.
This commit is contained in:
@@ -1877,6 +1877,8 @@ int multi_update::prepare(List<Item> ¬_used_values,
|
||||
*values, MARK_COLUMNS_READ, 0, NULL, 0) ||
|
||||
TABLE::check_assignability_explicit_fields(*fields, *values,
|
||||
ignore);
|
||||
if (unlikely(error))
|
||||
DBUG_RETURN(1);
|
||||
|
||||
ti.rewind();
|
||||
while ((table_ref= ti++))
|
||||
@@ -1893,8 +1895,6 @@ int multi_update::prepare(List<Item> ¬_used_values,
|
||||
table->file->prepare_for_modify(true, true);
|
||||
}
|
||||
}
|
||||
if (unlikely(error))
|
||||
DBUG_RETURN(1);
|
||||
|
||||
/*
|
||||
Save tables being updated in update_tables
|
||||
|
Reference in New Issue
Block a user