850
by Brian Aker
More class creation. |
1 |
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
|
2 |
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
|
|
3 |
*
|
|
4 |
* Copyright (C) 2008 Sun Microsystems
|
|
5 |
*
|
|
6 |
* This program is free software; you can redistribute it and/or modify
|
|
7 |
* it under the terms of the GNU General Public License as published by
|
|
8 |
* the Free Software Foundation; version 2 of the License.
|
|
9 |
*
|
|
10 |
* This program is distributed in the hope that it will be useful,
|
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13 |
* GNU General Public License for more details.
|
|
14 |
*
|
|
15 |
* You should have received a copy of the GNU General Public License
|
|
16 |
* along with this program; if not, write to the Free Software
|
|
17 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
18 |
*/
|
|
19 |
||
20 |
#ifndef DRIZZLED_SELECT_CREATE_H
|
|
21 |
#define DRIZZLED_SELECT_CREATE_H
|
|
22 |
||
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
23 |
namespace drizzled |
24 |
{
|
|
25 |
||
850
by Brian Aker
More class creation. |
26 |
class select_create: public select_insert { |
1892.3.3
by tdavies
struct order_st changed and renamed to c++ class named:Order |
27 |
Order *group; |
850
by Brian Aker
More class creation. |
28 |
TableList *create_table; |
1222.2.3
by Brian Aker
Remove a few more options, from options in HA_CREATE_INFO. |
29 |
bool is_if_not_exists; |
850
by Brian Aker
More class creation. |
30 |
HA_CREATE_INFO *create_info; |
1320.1.2
by Brian Aker
More reference counting. |
31 |
message::Table &table_proto; |
850
by Brian Aker
More class creation. |
32 |
TableList *select_tables; |
1126.3.3
by Jay Pipes
Moves Alter_info out into its own header and source file, cleans up some related include mess in sql_lex.h, and renames Alter_info to AlterInfo. |
33 |
AlterInfo *alter_info; |
850
by Brian Aker
More class creation. |
34 |
Field **field; |
35 |
/* lock data for tmp table */
|
|
1711.6.1
by Brian Aker
Style on structure cleanup |
36 |
DrizzleLock *m_lock; |
850
by Brian Aker
More class creation. |
37 |
/* m_lock or session->extra_lock */
|
1711.6.1
by Brian Aker
Style on structure cleanup |
38 |
DrizzleLock **m_plock; |
1340.1.1
by Brian Aker
Length usage of identifier down the tree. |
39 |
TableIdentifier &identifier; |
40 |
||
850
by Brian Aker
More class creation. |
41 |
public: |
42 |
select_create (TableList *table_arg, |
|
1222.2.3
by Brian Aker
Remove a few more options, from options in HA_CREATE_INFO. |
43 |
bool is_if_not_exists_arg, |
44 |
HA_CREATE_INFO *create_info_par, |
|
1320.1.2
by Brian Aker
More reference counting. |
45 |
message::Table &proto, |
1126.3.3
by Jay Pipes
Moves Alter_info out into its own header and source file, cleans up some related include mess in sql_lex.h, and renames Alter_info to AlterInfo. |
46 |
AlterInfo *alter_info_arg, |
1222.2.3
by Brian Aker
Remove a few more options, from options in HA_CREATE_INFO. |
47 |
List<Item> &select_fields,enum_duplicates duplic, bool ignore, |
1340.1.1
by Brian Aker
Length usage of identifier down the tree. |
48 |
TableList *select_tables_arg, |
49 |
TableIdentifier &identifier_arg) |
|
850
by Brian Aker
More class creation. |
50 |
:select_insert (NULL, NULL, &select_fields, 0, 0, duplic, ignore), |
51 |
create_table(table_arg), |
|
1222.2.3
by Brian Aker
Remove a few more options, from options in HA_CREATE_INFO. |
52 |
is_if_not_exists(is_if_not_exists_arg), |
850
by Brian Aker
More class creation. |
53 |
create_info(create_info_par), |
1067.1.1
by Stewart Smith
Beginning of create table proto in parser: pass which Engine is being used for CREATE TABLE in table proto. |
54 |
table_proto(proto), |
850
by Brian Aker
More class creation. |
55 |
select_tables(select_tables_arg), |
56 |
alter_info(alter_info_arg), |
|
1340.1.1
by Brian Aker
Length usage of identifier down the tree. |
57 |
m_plock(NULL), |
58 |
identifier(identifier_arg) |
|
850
by Brian Aker
More class creation. |
59 |
{}
|
60 |
int prepare(List<Item> &list, Select_Lex_Unit *u); |
|
61 |
||
62 |
void store_values(List<Item> &values); |
|
63 |
void send_error(uint32_t errcode,const char *err); |
|
64 |
bool send_eof(); |
|
65 |
void abort(); |
|
1340.1.1
by Brian Aker
Length usage of identifier down the tree. |
66 |
virtual bool can_rollback_data() { return true; } |
850
by Brian Aker
More class creation. |
67 |
|
68 |
// Needed for access from local class MY_HOOKS in prepare(), since session is proteted.
|
|
69 |
const Session *get_session(void) { return session; } |
|
1891.2.1
by Monty Taylor
Fixed things to make things compile with clang |
70 |
const HA_CREATE_INFO *get_create_info() { return create_info; } |
850
by Brian Aker
More class creation. |
71 |
int prepare2(void) { return 0; } |
72 |
};
|
|
73 |
||
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
74 |
} /* namespace drizzled */ |
75 |
||
850
by Brian Aker
More class creation. |
76 |
#endif /* DRIZZLED_SELECT_CREATE_H */ |