• Rucha Deodhar's avatar
    MDEV-26830: Wrong ROW_NUMBER in diagnostics upon INSERT IGNORE with · e13dc7d0
    Rucha Deodhar authored
    CHECK violation
    
    Analysis: When there is constraint fail we return non-zero value for
    view_check_option(). So we continue the loop which doesn't increment the
    counter because it increments at the end of the loop.
    Fix: Increment m_current_row_for_warning() at the beginning of loop. This
    will also fix similar bugs if any, about counter not incrementing
    correctly because of continue.
    e13dc7d0
get_diagnostics.test 40 KB