|
InnoDB Plugin
1.0
|
#include <handler0alter.h>
Public Member Functions | |
| ib_sequence_t (THD *thd, ulonglong start_value, ulonglong max_value) | |
| ulonglong | operator++ (int) UNIV_NOTHROW |
| bool | eof () const UNIV_NOTHROW |
| ulonglong | last () const UNIV_NOTHROW |
Data Fields | |
| const ulonglong | m_max_value |
| ulong | m_increment |
| ulong | m_offset |
| ulonglong | m_next_value |
| bool | m_eof |
Generate the next autoinc based on a snapshot of the session
auto_increment_increment and auto_increment_offset variables.
| ib_sequence_t::ib_sequence_t | ( | THD * | thd, |
| ulonglong | start_value, | ||
| ulonglong | max_value | ||
| ) |
| thd | - the session |
| start_value | - the lower bound |
| max_value | - the upper bound (inclusive) |
|
inline |
Check if the autoinc "sequence" is exhausted.
|
inline |
| ulonglong ib_sequence_t::operator++ | ( | int | ) |
Postfix increment
| bool ib_sequence_t::m_eof |
true if no more values left in the sequence
| ulong ib_sequence_t::m_increment |
Value of auto_increment_increment
| const ulonglong ib_sequence_t::m_max_value |
Maximum calumn value if adding an AUTOINC column else 0. Once
we reach the end of the sequence it will be set to ~0.
| ulonglong ib_sequence_t::m_next_value |
Next value in the sequence
| ulong ib_sequence_t::m_offset |
Value of auto_increment_offset
1.8.1.2