-
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()'.
Sivert Sorumgard authoredWhen 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