• Brandon Nesterenko's avatar
    MDEV-28487: sequences not respect value of binlog_row_image with select nextval(seq_gen) · 02e85aea
    Brandon Nesterenko authored
    Problem:
    ========
    When using sequences, the function
    sequence_definition::write(TABLE *table, bool all_fields)
    is used to save DML/DDL updates to sequence tables (e.g. nextval,
    setval, and alter). Prior to this patch, the value all_fields was
    always false when invoked via nextval and setval, which forced the
    bitmap to only include changed columns.
    
    Solution:
    ========
    Change all_fields when invoked via nextval and setval to be reliant
    on binlog_row_image, such that it is false when binlog_row_image is
    MINIMAL, and true otherwise.
    
    Reviewed By:
    ===========
    Andrei Elkin <andrei.elkin@mariadb.com>
    02e85aea
ensure_binlog_row_event_columns.inc 2.18 KB