• Marko Mäkelä's avatar
    MDEV-21744 Assertion `!rec_offs_nth_sql_null(offsets, n)' failed · 41fe972d
    Marko Mäkelä authored
    commit 08ba3887 of MDEV-12353
    introduced an incorrect assumption, which was documented by
    the failing assertion.
    
    After instant ADD COLUMN, we can have a null (and in-place) UPDATE
    of NULL to NULL. No data needs to be written for such updates.
    
    For ROW_FORMAT=REDUNDANT, we reserve space for the NULL values,
    and to be compatible with existing behaviour, we will zerofill
    the unused data bytes when updating to NULL value.
    41fe972d
trx0rec.cc 70.5 KB