1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-30263 Assertion failure in Protocol::end_statement upon HANDLER READ with invalid timestamp

Process save_in_field() return codes as in other places (<0 is real
error)
This commit is contained in:
Oleksandr Byelkin
2024-12-13 16:27:14 +01:00
parent d1f42fc80f
commit 271b73770c
3 changed files with 30 additions and 1 deletions

View File

@ -700,7 +700,7 @@ mysql_ha_fix_cond_and_key(SQL_HANDLER *handler,
MY_BITMAP *old_map= dbug_tmp_use_all_columns(table, &table->write_set);
int res= item->save_in_field(key_part->field, 1);
dbug_tmp_restore_column_map(&table->write_set, old_map);
if (res)
if (res < 0 || thd->is_error())
return 1;
}
key_len+= key_part->store_length;