MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
sql_partition_admin.h
1
/* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
2
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
6
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
11
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
15
16
#ifndef SQL_PARTITION_ADMIN_H
17
#define SQL_PARTITION_ADMIN_H
18
19
#ifndef WITH_PARTITION_STORAGE_ENGINE
20
25
class
Sql_cmd_partition_unsupported
:
public
Sql_cmd
26
{
27
public
:
28
Sql_cmd_partition_unsupported
()
29
{}
30
31
~
Sql_cmd_partition_unsupported
()
32
{}
33
34
/* Override SQLCOM_*, since it is an ALTER command */
35
virtual
enum_sql_command
sql_command_code
()
const
36
{
37
return
SQLCOM_ALTER_TABLE;
38
}
39
40
bool
execute
(THD *thd);
41
};
42
43
44
class
Sql_cmd_alter_table_exchange_partition
:
45
public
Sql_cmd_partition_unsupported
46
{
47
public
:
48
Sql_cmd_alter_table_exchange_partition
()
49
{}
50
51
~
Sql_cmd_alter_table_exchange_partition
()
52
{}
53
};
54
55
56
class
Sql_cmd_alter_table_analyze_partition
:
57
public
Sql_cmd_partition_unsupported
58
{
59
public
:
60
Sql_cmd_alter_table_analyze_partition
()
61
{}
62
63
~
Sql_cmd_alter_table_analyze_partition
()
64
{}
65
};
66
67
68
class
Sql_cmd_alter_table_check_partition
:
69
public
Sql_cmd_partition_unsupported
70
{
71
public
:
72
Sql_cmd_alter_table_check_partition
()
73
{}
74
75
~
Sql_cmd_alter_table_check_partition
()
76
{}
77
};
78
79
80
class
Sql_cmd_alter_table_optimize_partition
:
81
public
Sql_cmd_partition_unsupported
82
{
83
public
:
84
Sql_cmd_alter_table_optimize_partition
()
85
{}
86
87
~
Sql_cmd_alter_table_optimize_partition
()
88
{}
89
};
90
91
92
class
Sql_cmd_alter_table_repair_partition
:
93
public
Sql_cmd_partition_unsupported
94
{
95
public
:
96
Sql_cmd_alter_table_repair_partition
()
97
{}
98
99
~
Sql_cmd_alter_table_repair_partition
()
100
{}
101
};
102
103
104
class
Sql_cmd_alter_table_truncate_partition
:
105
public
Sql_cmd_partition_unsupported
106
{
107
public
:
108
Sql_cmd_alter_table_truncate_partition
()
109
{}
110
111
~
Sql_cmd_alter_table_truncate_partition
()
112
{}
113
};
114
115
#else
116
121
class
Sql_cmd_alter_table_exchange_partition
:
public
Sql_cmd_common_alter_table
122
{
123
public
:
127
Sql_cmd_alter_table_exchange_partition
()
128
:
Sql_cmd_common_alter_table
()
129
{}
130
131
~
Sql_cmd_alter_table_exchange_partition
()
132
{}
133
134
bool
execute
(THD *thd);
135
136
private
:
137
bool
exchange_partition(THD *thd,
TABLE_LIST
*,
Alter_info
*);
138
};
139
140
144
class
Sql_cmd_alter_table_analyze_partition
:
public
Sql_cmd_analyze_table
145
{
146
public
:
150
Sql_cmd_alter_table_analyze_partition
()
151
:
Sql_cmd_analyze_table
()
152
{}
153
154
~
Sql_cmd_alter_table_analyze_partition
()
155
{}
156
157
bool
execute
(THD *thd);
158
159
/* Override SQLCOM_ANALYZE, since it is an ALTER command */
160
virtual
enum_sql_command
sql_command_code
()
const
161
{
162
return
SQLCOM_ALTER_TABLE;
163
}
164
};
165
166
170
class
Sql_cmd_alter_table_check_partition
:
public
Sql_cmd_check_table
171
{
172
public
:
176
Sql_cmd_alter_table_check_partition
()
177
:
Sql_cmd_check_table
()
178
{}
179
180
~
Sql_cmd_alter_table_check_partition
()
181
{}
182
183
bool
execute
(THD *thd);
184
185
/* Override SQLCOM_CHECK, since it is an ALTER command */
186
virtual
enum_sql_command
sql_command_code
()
const
187
{
188
return
SQLCOM_ALTER_TABLE;
189
}
190
};
191
192
196
class
Sql_cmd_alter_table_optimize_partition
:
public
Sql_cmd_optimize_table
197
{
198
public
:
202
Sql_cmd_alter_table_optimize_partition
()
203
:
Sql_cmd_optimize_table
()
204
{}
205
206
~
Sql_cmd_alter_table_optimize_partition
()
207
{}
208
209
bool
execute
(THD *thd);
210
211
/* Override SQLCOM_OPTIMIZE, since it is an ALTER command */
212
virtual
enum_sql_command
sql_command_code
()
const
213
{
214
return
SQLCOM_ALTER_TABLE;
215
}
216
};
217
218
222
class
Sql_cmd_alter_table_repair_partition
:
public
Sql_cmd_repair_table
223
{
224
public
:
228
Sql_cmd_alter_table_repair_partition
()
229
:
Sql_cmd_repair_table
()
230
{}
231
232
~
Sql_cmd_alter_table_repair_partition
()
233
{}
234
235
bool
execute
(THD *thd);
236
237
/* Override SQLCOM_REPAIR, since it is an ALTER command */
238
virtual
enum_sql_command
sql_command_code
()
const
239
{
240
return
SQLCOM_ALTER_TABLE;
241
}
242
};
243
244
248
class
Sql_cmd_alter_table_truncate_partition
:
public
Sql_cmd_truncate_table
249
{
250
public
:
254
Sql_cmd_alter_table_truncate_partition
()
255
{}
256
257
virtual
~
Sql_cmd_alter_table_truncate_partition
()
258
{}
259
260
bool
execute
(THD *thd);
261
262
/* Override SQLCOM_TRUNCATE, since it is an ALTER command */
263
virtual
enum_sql_command
sql_command_code
()
const
264
{
265
return
SQLCOM_ALTER_TABLE;
266
}
267
};
268
269
#endif
/* WITH_PARTITION_STORAGE_ENGINE */
270
#endif
/* SQL_PARTITION_ADMIN_H */
sql
sql_partition_admin.h
Generated on Sat Nov 9 2013 01:26:05 for MySQL 5.6.14 Source Code Document by
1.8.1.2