summaryrefslogtreecommitdiff
path: root/sql/sql_sequence.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_sequence.h')
-rw-r--r--sql/sql_sequence.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_sequence.h b/sql/sql_sequence.h
index f5534d55d9b..1409f86649f 100644
--- a/sql/sql_sequence.h
+++ b/sql/sql_sequence.h
@@ -66,6 +66,7 @@ public:
class SEQUENCE :public sequence_definition
{
public:
+ enum seq_init { SEQ_UNINTIALIZED, SEQ_IN_PREPARE, SEQ_READY_TO_USE };
SEQUENCE();
~SEQUENCE();
int read_initial_values(TABLE *table);
@@ -87,8 +88,9 @@ public:
}
longlong next_value(TABLE *table, bool second_round, int *error);
- bool initialized; // If row has been read
bool all_values_used;
+ seq_init initialized;
+
private:
TABLE *table;
mysql_mutex_t mutex;