1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03: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:
Sergei Golubchik
2017-01-12 00:33:21 +01:00
parent 7e2f9d092d
commit 5dfab33c4e
3 changed files with 25 additions and 1 deletions

View File

@ -354,3 +354,13 @@ show columns from t1;
Field Type Null Key Default Extra
a int(11) NO PRI NULL
drop table t1;
create table t1 (
pk int primary key,
i int,
v1 int as (i) virtual,
v2 int as (i) virtual
);
create trigger tr before update on t1 for each row set @a = 1;
insert into t1 (pk, i) values (null, null);
ERROR 23000: Column 'pk' cannot be null
drop table t1;