diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-01-12 00:33:21 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-01-15 07:41:13 +0100 |
commit | 5dfab33c4ec54082daf034da99c4a796410fe4f3 (patch) | |
tree | d3063943c2eededdafdbfe1f5eb1b8075dd2ade6 /sql | |
parent | 7e2f9d092dd1fb6b0fa1a8fdd5d1f3af68b56f45 (diff) | |
download | mariadb-git-5dfab33c4ec54082daf034da99c4a796410fe4f3.tar.gz |
MDEV-11551 Server crashes in Field::is_real_null
sometimes table->s->stored_fields is less than table->s->null_fields
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_trigger.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_trigger.cc b/sql/sql_trigger.cc index 7a61279fc9c..7bfc1e950b5 100644 --- a/sql/sql_trigger.cc +++ b/sql/sql_trigger.cc @@ -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, |