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_truncate.h
1
#ifndef SQL_TRUNCATE_INCLUDED
2
#define SQL_TRUNCATE_INCLUDED
3
/* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; version 2 of the License.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
17
18
class
THD;
19
struct
TABLE_LIST
;
20
24
class
Sql_cmd_truncate_table
:
public
Sql_cmd
25
{
26
private
:
27
/* Set if a lock must be downgraded after truncate is done. */
28
MDL_ticket
*m_ticket_downgrade;
29
30
public
:
34
Sql_cmd_truncate_table
()
35
{}
36
37
virtual
~
Sql_cmd_truncate_table
()
38
{}
39
45
bool
execute
(THD *thd);
46
47
virtual
enum_sql_command
sql_command_code
()
const
48
{
49
return
SQLCOM_TRUNCATE;
50
}
51
52
protected
:
54
bool
lock_table
(THD *,
TABLE_LIST
*,
bool
*);
55
57
int
handler_truncate
(THD *,
TABLE_LIST
*,
bool
);
58
64
bool
truncate_table
(THD *,
TABLE_LIST
*);
65
};
66
67
#endif
sql
sql_truncate.h
Generated on Sat Nov 9 2013 01:26:12 for MySQL 5.6.14 Source Code Document by
1.8.1.2