Skip to content
  • Sivert Sorumgard's avatar
    fa985b07
    Bug #27041393: ASSERTION `HAS_ERROR == THD->GET_STMT_DA()->IS_ERROR()' FAILED. · fa985b07
    Sivert Sorumgard authored
    When setting an invalid value for an auto increment column, a warning is
    set in 'Field_double::val_int()' and promoted to error in strict mode. In
    5.7, a subsequent check for 'THD::is_error()' in 'sql_insert.cc' caught
    this correctly. However, in 8.0, this code was modified and the check
    does not catch the error in the same way.
    
    To fix this issue, this patch adds a check for 'THD::is_error()' after calling
    'table->next_number_field->val_int()' in 'handler::update_auto_incrememnt()'.
    fa985b07
    Bug #27041393: ASSERTION `HAS_ERROR == THD->GET_STMT_DA()->IS_ERROR()' FAILED.
    Sivert Sorumgard authored
    When setting an invalid value for an auto increment column, a warning is
    set in 'Field_double::val_int()' and promoted to error in strict mode. In
    5.7, a subsequent check for 'THD::is_error()' in 'sql_insert.cc' caught
    this correctly. However, in 8.0, this code was modified and the check
    does not catch the error in the same way.
    
    To fix this issue, this patch adds a check for 'THD::is_error()' after calling
    'table->next_number_field->val_int()' in 'handler::update_auto_incrememnt()'.
Loading