MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
handler0alter.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 2005, 2013, Oracle and/or its affiliates. All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free Software
7 Foundation; version 2 of the License.
8 
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License along with
14 this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
16 
17 *****************************************************************************/
18 
19 /**************************************************/
24 /*************************************************************/
26 UNIV_INTERN
27 void
29 /*==================*/
30  struct TABLE* table,
31  const rec_t* rec,
32  const dict_index_t* index,
33  const ulint* offsets)
35  __attribute__((nonnull));
36 
37 /*************************************************************/
39 UNIV_INTERN
40 void
42 /*=====================*/
43  struct TABLE* table,
44  const dict_index_t* index,
45  const dfield_t* fields)
46  __attribute__((nonnull));
47 
48 /*************************************************************/
50 UNIV_INTERN
51 void
53 /*==================*/
54  struct TABLE* table,
55  const dict_table_t* itab,
56  const dtuple_t* row)
57  __attribute__((nonnull));
58 
59 /*************************************************************/
61 UNIV_INTERN
62 void
64 /*===============*/
65  struct TABLE* table)
66  __attribute__((nonnull));
67 
70 struct ib_sequence_t {
71 
76  ib_sequence_t(THD* thd, ulonglong start_value, ulonglong max_value);
77 
81  ulonglong operator++(int) UNIV_NOTHROW;
82 
85  bool eof() const UNIV_NOTHROW
86  {
87  return(m_eof);
88  }
89 
92  ulonglong last() const UNIV_NOTHROW
93  {
94  ut_ad(m_next_value > 0);
95 
96  return(m_next_value);
97  }
98 
101  const ulonglong m_max_value;
102 
104  ulong m_increment;
105 
107  ulong m_offset;
108 
110  ulonglong m_next_value;
111 
113  bool m_eof;
114 };