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:
@ -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;
|
||||
|
Reference in New Issue
Block a user