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

MDEV-9629 Disappearing PRI from Key column after creating a trigger

when creating shadow nullable fields, preserve all
original field flags (because we swap flags
back and forth in not_null_fields_have_null_values())
This commit is contained in:
Sergei Golubchik
2016-03-17 22:03:09 +01:00
parent b24a04c6e0
commit 23903255d8
3 changed files with 27 additions and 0 deletions

View File

@ -1101,6 +1101,7 @@ bool Table_triggers_list::prepare_record_accessors(TABLE *table)
table == (*fld)->table)))
return 1;
f->flags= (*fld)->flags;
f->null_ptr= null_ptr;
f->null_bit= null_bit;
if (null_bit == 128)