mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@ -727,8 +727,8 @@ longlong SEQUENCE::next_value(TABLE *table, bool second_round, int *error)
|
||||
|
||||
if (real_increment > 0)
|
||||
{
|
||||
if (reserved_until + add_to > max_value ||
|
||||
reserved_until > max_value - add_to)
|
||||
if (reserved_until > max_value - add_to ||
|
||||
reserved_until + add_to > max_value)
|
||||
{
|
||||
reserved_until= max_value + 1;
|
||||
out_of_values= res_value >= reserved_until;
|
||||
|
Reference in New Issue
Block a user