• Oleksandr Byelkin's avatar
    MDEV-15732: Assertion `next_free_value % real_increment == offset &&... · 0bdc15d8
    Oleksandr Byelkin authored
    MDEV-15732: Assertion `next_free_value % real_increment == offset && next_free_value >= reserved_until' failed in sequence_definition::adjust_values upon SETVAL for sequence with INCREMENT 0
    
    there was a problem with "next_free_value >= reserved_until" condition:
    SEQUENCE::set_value handle next_free_value & reserved_until after adjust_values() call, so it is incorect to put assert on it in adjust_values()
    0bdc15d8
sql_sequence.cc 28 KB