diff options
author | Monty <monty@mariadb.org> | 2017-06-03 16:08:23 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2017-06-03 16:08:23 +0300 |
commit | 36ae8846ca86bc82900f8c1b2bbad2666a3e9945 (patch) | |
tree | db4b5b9b6d611410d8751673a8e737c235b94c39 /sql/sql_sequence.h | |
parent | 3356e42d01dbef2bfa9a02ec08c7756760385e1e (diff) | |
download | mariadb-git-36ae8846ca86bc82900f8c1b2bbad2666a3e9945.tar.gz |
Fixed sequences based on comments from Peter Gulutzan and Andrii Nikitin
- Changed names of SEQUENCE table columns to be more close to ANSI
- Fixed error message for SHOW SEQUENCE non_existing_sequence
- Allow syntax CACHE +1
- Fixed ALTER TABLE for TEMPORARY sequences.
Diffstat (limited to 'sql/sql_sequence.h')
-rw-r--r-- | sql/sql_sequence.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_sequence.h b/sql/sql_sequence.h index b560d03ca52..1dc777657d5 100644 --- a/sql/sql_sequence.h +++ b/sql/sql_sequence.h @@ -88,7 +88,8 @@ protected: class SEQUENCE :public sequence_definition { public: - enum seq_init { SEQ_UNINTIALIZED, SEQ_IN_PREPARE, SEQ_READY_TO_USE }; + enum seq_init { SEQ_UNINTIALIZED, SEQ_IN_PREPARE, SEQ_IN_ALTER, + SEQ_READY_TO_USE }; SEQUENCE(); ~SEQUENCE(); int read_initial_values(TABLE *table); @@ -101,6 +102,7 @@ public: { sequence_definition::operator= (*seq); adjust_values(reserved_until); + all_values_used= 0; } longlong next_value(TABLE *table, bool second_round, int *error); bool set_value(TABLE *table, longlong next_value, ulonglong round_arg, |