~drizzle-trunk/drizzle/development

1285 by Brian Aker
Remove giant include header to its own file.
1
/* Copyright (C) 2000-2003 MySQL AB
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
1802.10.2 by Monty Taylor
Update all of the copyright headers to include the correct address.
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
1285 by Brian Aker
Remove giant include header to its own file.
15
2234 by Brian Aker
Mass removal of ifdef/endif in favor of pragma once.
16
#pragma once
1285 by Brian Aker
Remove giant include header to its own file.
17
2154.2.24 by Brian Aker
Merge in all changes for current_session, etc.
18
#include <drizzled/charset.h>
19
#include <drizzled/error.h>
1285 by Brian Aker
Remove giant include header to its own file.
20
#include <drizzled/foreign_key.h>
2198.6.1 by Brian Aker
Add in an ANSI || operator.
21
#include <drizzled/function/bit/functions.h>
2154.2.24 by Brian Aker
Merge in all changes for current_session, etc.
22
#include <drizzled/function/get_system_var.h>
1285 by Brian Aker
Remove giant include header to its own file.
23
#include <drizzled/function/locate.h>
2154.2.24 by Brian Aker
Merge in all changes for current_session, etc.
24
#include <drizzled/function/set_user_var.h>
1285 by Brian Aker
Remove giant include header to its own file.
25
#include <drizzled/function/str/char.h>
26
#include <drizzled/function/str/collation.h>
2198.6.1 by Brian Aker
Add in an ANSI || operator.
27
#include <drizzled/function/str/concat.h>
1285 by Brian Aker
Remove giant include header to its own file.
28
#include <drizzled/function/str/insert.h>
29
#include <drizzled/function/str/left.h>
30
#include <drizzled/function/str/repeat.h>
31
#include <drizzled/function/str/replace.h>
32
#include <drizzled/function/str/right.h>
33
#include <drizzled/function/str/set_collation.h>
34
#include <drizzled/function/str/trim.h>
35
#include <drizzled/function/time/curdate.h>
36
#include <drizzled/function/time/date_add_interval.h>
37
#include <drizzled/function/time/dayofmonth.h>
38
#include <drizzled/function/time/extract.h>
39
#include <drizzled/function/time/hour.h>
40
#include <drizzled/function/time/microsecond.h>
41
#include <drizzled/function/time/minute.h>
42
#include <drizzled/function/time/month.h>
43
#include <drizzled/function/time/now.h>
44
#include <drizzled/function/time/quarter.h>
45
#include <drizzled/function/time/second.h>
46
#include <drizzled/function/time/sysdate_local.h>
47
#include <drizzled/function/time/timestamp_diff.h>
48
#include <drizzled/function/time/typecast.h>
49
#include <drizzled/function/time/year.h>
2154.2.24 by Brian Aker
Merge in all changes for current_session, etc.
50
#include <drizzled/internal/m_string.h>
51
#include <drizzled/item/boolean.h>
52
#include <drizzled/item/cmpfunc.h>
1285 by Brian Aker
Remove giant include header to its own file.
53
#include <drizzled/item/copy_string.h>
54
#include <drizzled/item/create.h>
55
#include <drizzled/item/default_value.h>
2154.2.24 by Brian Aker
Merge in all changes for current_session, etc.
56
#include <drizzled/item/func.h>
1285 by Brian Aker
Remove giant include header to its own file.
57
#include <drizzled/item/insert_value.h>
2154.2.24 by Brian Aker
Merge in all changes for current_session, etc.
58
#include <drizzled/item/null.h>
59
#include <drizzled/item/uint.h>
1285 by Brian Aker
Remove giant include header to its own file.
60
#include <drizzled/lex_string.h>
2154.2.24 by Brian Aker
Merge in all changes for current_session, etc.
61
#include <drizzled/lex_symbol.h>
62
#include <drizzled/message/schema.pb.h>
1285 by Brian Aker
Remove giant include header to its own file.
63
#include <drizzled/message/table.pb.h>
2154.2.24 by Brian Aker
Merge in all changes for current_session, etc.
64
#include <drizzled/nested_join.h>
65
#include <drizzled/pthread_globals.h>
66
#include <drizzled/select_dump.h>
67
#include <drizzled/select_dumpvar.h>
68
#include <drizzled/select_export.h>
69
#include <drizzled/sql_base.h>
70
#include <drizzled/sql_parse.h>
1285 by Brian Aker
Remove giant include header to its own file.
71
#include <drizzled/statement.h>
72
#include <drizzled/statement/alter_schema.h>
73
#include <drizzled/statement/alter_table.h>
74
#include <drizzled/statement/analyze.h>
2073.1.2 by Brian Aker
Basic DDL for catalog.
75
#include <drizzled/statement/catalog.h>
1285 by Brian Aker
Remove giant include header to its own file.
76
#include <drizzled/statement/change_schema.h>
77
#include <drizzled/statement/check.h>
78
#include <drizzled/statement/commit.h>
79
#include <drizzled/statement/create_index.h>
80
#include <drizzled/statement/create_schema.h>
81
#include <drizzled/statement/create_table.h>
82
#include <drizzled/statement/delete.h>
83
#include <drizzled/statement/drop_index.h>
84
#include <drizzled/statement/drop_schema.h>
85
#include <drizzled/statement/drop_table.h>
86
#include <drizzled/statement/empty_query.h>
1835.1.6 by Brian Aker
This patch returns dynamic SQL into the core (through SQL-Server syntax).
87
#include <drizzled/statement/execute.h>
1285 by Brian Aker
Remove giant include header to its own file.
88
#include <drizzled/statement/flush.h>
89
#include <drizzled/statement/insert.h>
90
#include <drizzled/statement/insert_select.h>
91
#include <drizzled/statement/kill.h>
92
#include <drizzled/statement/load.h>
93
#include <drizzled/statement/release_savepoint.h>
94
#include <drizzled/statement/rename_table.h>
95
#include <drizzled/statement/replace.h>
96
#include <drizzled/statement/replace_select.h>
97
#include <drizzled/statement/rollback.h>
98
#include <drizzled/statement/rollback_to_savepoint.h>
99
#include <drizzled/statement/savepoint.h>
100
#include <drizzled/statement/select.h>
2154.2.24 by Brian Aker
Merge in all changes for current_session, etc.
101
#include <drizzled/statement/set_option.h>
1874.2.2 by Brian Aker
What was once old, is now new again. Seperated out show from select.
102
#include <drizzled/statement/show.h>
1285 by Brian Aker
Remove giant include header to its own file.
103
#include <drizzled/statement/show_errors.h>
104
#include <drizzled/statement/show_warnings.h>
105
#include <drizzled/statement/start_transaction.h>
106
#include <drizzled/statement/truncate.h>
107
#include <drizzled/statement/unlock_tables.h>
108
#include <drizzled/statement/update.h>
2023.2.7 by Brian Aker
Create an Bool primtive type for item.
109
2096.1.14 by Brian Aker
Pull in more C code from parser.
110
namespace drizzled {
2096.1.15 by Brian Aker
Additional parser cleanup.
111
namespace parser {
112
2440.2.12 by Olaf van der Spek
Refactor
113
Item* handle_sql2003_note184_exception(Session*, Item* left, bool equal, Item *expr);
114
bool add_select_to_union_list(Session*, LEX*, bool is_union_distinct);
115
bool setup_select_in_parentheses(Session*, LEX*);
116
Item* reserved_keyword_function(Session*, const std::string &name, List<Item> *item_list);
117
void my_parse_error(Lex_input_stream*);
118
void my_parse_error(const char*);
119
bool check_reserved_words(str_ref);
2440.2.28 by Olaf van der Spek
Refactor
120
void errorOn(Session*, const char *s);
2440.2.12 by Olaf van der Spek
Refactor
121
122
123
bool buildOrderBy(LEX*);
124
void buildEngineOption(LEX*, const char *key, str_ref value);
125
void buildEngineOption(LEX*, const char *key, uint64_t value);
126
void buildSchemaOption(LEX*, const char *key, str_ref value);
127
void buildSchemaOption(LEX*, const char *key, uint64_t value);
2440.2.28 by Olaf van der Spek
Refactor
128
void buildSchemaDefiner(LEX*, const identifier::User&);
2445.1.8 by Olaf van der Spek
Use str_ref
129
bool checkFieldIdent(LEX*, str_ref schema_name, str_ref table_name);
2440.2.12 by Olaf van der Spek
Refactor
130
2445.1.8 by Olaf van der Spek
Use str_ref
131
Item *buildIdent(LEX*, str_ref schema_name, str_ref table_name, str_ref field_name);
132
Item *buildTableWild(LEX*, str_ref schema_name, str_ref table_name);
2440.2.12 by Olaf van der Spek
Refactor
133
134
void buildCreateFieldIdent(LEX*);
135
void storeAlterColumnPosition(LEX*, const char *position);
136
137
bool buildCollation(LEX*, const charset_info_st *arg);
2445.1.11 by Olaf van der Spek
Use str_ref
138
void buildKey(LEX*, Key::Keytype type_par, str_ref name_arg);
139
void buildForeignKey(LEX*, str_ref name_arg, Table_ident *table);
2440.2.12 by Olaf van der Spek
Refactor
140
2440.2.28 by Olaf van der Spek
Refactor
141
enum_field_types buildIntegerColumn(LEX*, enum_field_types final_type, const bool is_unsigned);
142
enum_field_types buildSerialColumn(LEX*);
143
enum_field_types buildVarcharColumn(LEX*, const char *length);
144
enum_field_types buildVarbinaryColumn(LEX*, const char *length);
145
enum_field_types buildBlobColumn(LEX*);
146
enum_field_types buildBooleanColumn(LEX*);
147
enum_field_types buildUuidColumn(LEX*);
148
enum_field_types buildIPv6Column(LEX*);
149
enum_field_types buildDoubleColumn(LEX*);
150
enum_field_types buildTimestampColumn(LEX*, const char *length);
151
enum_field_types buildDecimalColumn(LEX*);
2440.2.12 by Olaf van der Spek
Refactor
152
153
void buildKeyOnColumn(LEX*);
154
void buildAutoOnColumn(LEX*);
155
void buildPrimaryOnColumn(LEX*);
156
void buildReplicationOption(LEX*, bool arg);
157
void buildAddAlterDropIndex(LEX*, const char *name, bool is_foreign_key= false);
2148.5.16 by Brian Aker
Adding build for unique column
158
2096.1.14 by Brian Aker
Pull in more C code from parser.
159
} // namespace parser
160
} // namespace drizzled
161