mirror of
https://github.com/MariaDB/server.git
synced 2026-04-30 20:25:32 +02:00
MDEV-11551 Server crashes in Field::is_real_null
sometimes table->s->stored_fields is less than table->s->null_fields
This commit is contained in:
parent
7e2f9d092d
commit
5dfab33c4e
3 changed files with 25 additions and 1 deletions
|
|
@ -1082,7 +1082,7 @@ bool Table_triggers_list::prepare_record_accessors(TABLE *table)
|
|||
&& (table->s->stored_fields != table->s->null_fields))
|
||||
|
||||
{
|
||||
int null_bytes= (table->s->stored_fields - table->s->null_fields + 7)/8;
|
||||
int null_bytes= (table->s->fields - table->s->null_fields + 7)/8;
|
||||
if (!(extra_null_bitmap= (uchar*)alloc_root(&table->mem_root, null_bytes)))
|
||||
return 1;
|
||||
if (!(record0_field= (Field **)alloc_root(&table->mem_root,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue