1
0
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:
Sergei Golubchik
2025-01-04 17:27:55 +01:00
parent cca243bf02
commit 0eaefafbaf
4 changed files with 22 additions and 2 deletions

View File

@@ -1877,6 +1877,8 @@ int multi_update::prepare(List<Item> &not_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> &not_used_values,
table->file->prepare_for_modify(true, true);
}
}
if (unlikely(error))
DBUG_RETURN(1);
/*
Save tables being updated in update_tables