diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-04-06 10:06:39 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-04-06 10:06:39 +0300 |
commit | cacb61b6be78b01a9c62890cc81d059ee46921ac (patch) | |
tree | 7065a7417d5569d5a5f61104daf09f6a98e842bc /sql/sql_sequence.cc | |
parent | aed87f1e0aa20e9e3f525ff303ee766ca6b106b7 (diff) | |
parent | f089f8d95e569291bdf4329124c34674f02e40fe (diff) | |
download | mariadb-git-cacb61b6be78b01a9c62890cc81d059ee46921ac.tar.gz |
Merge 10.4 into 10.5
Diffstat (limited to 'sql/sql_sequence.cc')
-rw-r--r-- | sql/sql_sequence.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_sequence.cc b/sql/sql_sequence.cc index 91ee97f7822..7ef30641888 100644 --- a/sql/sql_sequence.cc +++ b/sql/sql_sequence.cc @@ -122,7 +122,7 @@ bool sequence_definition::check_and_adjust(bool set_reserved_until) start >= min_value && max_value != LONGLONG_MAX && min_value != LONGLONG_MIN && - cache < (LONGLONG_MAX - max_increment) / max_increment && + cache >= 0 && cache < (LONGLONG_MAX - max_increment) / max_increment && ((real_increment > 0 && reserved_until >= min_value) || (real_increment < 0 && reserved_until <= max_value))) DBUG_RETURN(FALSE); |