Merge lp:~mordred/drizzle/split-session-header into lp:drizzle/7.0

Proposed by Monty Taylor
Status: Work in progress
Proposed branch: lp:~mordred/drizzle/split-session-header
Merge into: lp:drizzle/7.0
Prerequisite: lp:~mordred/drizzle/give-in-to-pkg-config
Diff against target: 1205 lines (+455/-118) (has conflicts)
48 files modified
drizzled/base.h (+1/-1)
drizzled/common.h (+0/-1)
drizzled/copy_info.h (+121/-0)
drizzled/daemon.cc (+5/-0)
drizzled/definitions.h (+1/-4)
drizzled/filesort.cc (+1/-0)
drizzled/function/get_user_var.cc (+1/-0)
drizzled/function/set_user_var.cc (+1/-0)
drizzled/function/user_var_as_out_param.cc (+1/-0)
drizzled/identifier/catalog.cc (+1/-0)
drizzled/identifier/schema.cc (+1/-0)
drizzled/include.am (+6/-1)
drizzled/item/subselect.cc (+7/-0)
drizzled/item/sum.cc (+2/-0)
drizzled/join.h (+1/-0)
drizzled/lex_column.h (+2/-0)
drizzled/main.cc (+19/-16)
drizzled/module/loader.cc (+0/-2)
drizzled/optimizer/quick_index_merge_select.cc (+1/-0)
drizzled/optimizer/range.cc (+1/-0)
drizzled/select_create.h (+2/-0)
drizzled/select_dump.h (+2/-0)
drizzled/select_dumpvar.h (+1/-0)
drizzled/select_singlerow_subselect.h (+2/-0)
drizzled/session.cc (+17/-0)
drizzled/session.h (+30/-89)
drizzled/set_var.cc (+2/-0)
drizzled/set_var.h (+0/-1)
drizzled/show.cc (+2/-0)
drizzled/sort_field.h (+70/-0)
drizzled/sql_derived.cc (+1/-0)
drizzled/sql_insert.cc (+2/-0)
drizzled/sql_lex.h (+1/-0)
drizzled/sql_parse.cc (+1/-0)
drizzled/sql_select.cc (+1/-0)
drizzled/sql_union.cc (+1/-0)
drizzled/sql_yacc.yy (+6/-0)
drizzled/statement/create_table.cc (+5/-0)
drizzled/statement/insert_select.cc (+1/-0)
drizzled/statement/replace_select.cc (+2/-0)
drizzled/sys_var.h (+1/-1)
drizzled/system_variables.h (+115/-0)
drizzled/unique.cc (+1/-0)
drizzled/user_var_entry.cc (+1/-0)
drizzled/user_var_entry.h (+10/-1)
plugin/logging_stats/user_commands.cc (+1/-0)
plugin/mysql_protocol/mysql_protocol.cc (+3/-1)
plugin/session_dictionary/variables.cc (+1/-0)
Conflict adding file drizzled/copy_info.h.  Moved existing file to drizzled/copy_info.h.moved.
Text conflict in drizzled/cursor.cc
Text conflict in drizzled/drizzled.cc
Text conflict in drizzled/field.h
Text conflict in drizzled/function/cast/boolean.cc
Text conflict in drizzled/function/cast/boolean.h
Text conflict in drizzled/function/cast/signed.cc
Text conflict in drizzled/function/cast/unsigned.cc
Text conflict in drizzled/function/func.h
Text conflict in drizzled/generator.h
Text conflict in drizzled/generator/table.h
Text conflict in drizzled/handler_structs.h
Text conflict in drizzled/hybrid_type_traits.cc
Text conflict in drizzled/hybrid_type_traits_decimal.cc
Text conflict in drizzled/hybrid_type_traits_integer.cc
Text conflict in drizzled/include.am
Text conflict in drizzled/item.h
Text conflict in drizzled/item/cache.h
Text conflict in drizzled/item/cmpfunc.h
Text conflict in drizzled/item/int.cc
Text conflict in drizzled/item/null.h
Text conflict in drizzled/item/num.h
Text conflict in drizzled/item/subselect.cc
Text conflict in drizzled/item/sum.h
Text conflict in drizzled/join.cc
Text conflict in drizzled/join.h
Text conflict in drizzled/key.cc
Text conflict in drizzled/locking/global.cc
Text conflict in drizzled/main.cc
Text conflict in drizzled/open_tables_state.h
Text conflict in drizzled/optimizer/quick_index_merge_select.h
Text conflict in drizzled/optimizer/range.cc
Text conflict in drizzled/optimizer/range.h
Text conflict in drizzled/optimizer/sum.cc
Text conflict in drizzled/plugin/client.cc
Text conflict in drizzled/plugin/function.h
Text conflict in drizzled/plugin/query_rewrite.h
Text conflict in drizzled/plugin/storage_engine.h
Text conflict in drizzled/plugin/table_function.cc
Text conflict in drizzled/records.cc
Text conflict in drizzled/session.cc
Text conflict in drizzled/session.h
Text conflict in drizzled/session/cache.cc
Text conflict in drizzled/session/cache.h
Text conflict in drizzled/show.cc
Text conflict in drizzled/show.h
Text conflict in drizzled/sql_base.cc
Text conflict in drizzled/sql_parse.cc
Text conflict in drizzled/sql_select.cc
Text conflict in drizzled/sql_select.h
Text conflict in drizzled/sql_table.cc
Text conflict in drizzled/sql_update.cc
Text conflict in drizzled/statement/alter_table.cc
Text conflict in drizzled/statement/create_index.cc
Text conflict in drizzled/statement/create_table.cc
Text conflict in drizzled/statement/drop_index.cc
Text conflict in drizzled/statement/flush.cc
Text conflict in drizzled/statement/rename_table.cc
Text conflict in drizzled/sys_var.cc
Conflict adding file drizzled/system_variables.h.  Moved existing file to drizzled/system_variables.h.moved.
Text conflict in drizzled/table.cc
Text conflict in drizzled/table/instance/base.cc
Text conflict in drizzled/table_ident.h
Text conflict in drizzled/table_proto_write.cc
Text conflict in drizzled/temporal_interval.h
Text conflict in drizzled/tztime.h
Text conflict in plugin/blackhole/ha_blackhole.cc
Text conflict in plugin/hex_functions/hex_functions.cc
Text conflict in plugin/information_schema_dictionary/domains.cc
Text conflict in plugin/innobase/handler/replication_dictionary.cc
Text conflict in plugin/md5/md5.cc
Text conflict in plugin/memory/ha_heap.cc
Text conflict in plugin/show_schema_proto/show_schema_proto.cc
Text conflict in plugin/signal_handler/signal_handler.cc
Text conflict in plugin/string_functions/functions.cc
Text conflict in plugin/string_functions/functions.h
Text conflict in plugin/tableprototester/tableprototester.cc
Text conflict in plugin/transaction_log/hexdump_transaction_message.cc
Text conflict in plugin/transaction_log/print_transaction_message.cc
Text conflict in plugin/utility_functions/functions.cc
To merge this branch: bzr merge lp:~mordred/drizzle/split-session-header
Reviewer Review Type Date Requested Status
Drizzle Developers Pending
Review via email: mp+49520@code.launchpad.net

Description of the change

Split up session.h into a few different files, cleaned up where things where including things and got rid of the bits of session.h that required files to be included in the middle of the file.

To post a comment you must log in.
Revision history for this message
Brian Aker (brianaker) wrote :

I just did this :)

We will need to merge it.

Unmerged revisions

2161. By Monty Taylor

Split apart session.h into smaller headers, which also removed the need for
us to have include statements in the middle of the file. While I was at it,
I converted daemon.c to c++.

2160. By Monty Taylor

Be consistent about include usage.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'drizzled/base.h'
2--- drizzled/base.h 2011-01-11 22:30:08 +0000
3+++ drizzled/base.h 2011-02-12 21:09:18 +0000
4@@ -25,7 +25,7 @@
5 * @TODO Convert HA_XXX defines into enums and/or bitmaps
6 */
7
8-#include "definitions.h"
9+#include <drizzled/definitions.h>
10
11 #ifndef DRIZZLED_BASE_H
12 #define DRIZZLED_BASE_H
13
14=== modified file 'drizzled/common.h'
15--- drizzled/common.h 2011-01-04 04:05:27 +0000
16+++ drizzled/common.h 2011-02-12 21:09:18 +0000
17@@ -25,7 +25,6 @@
18 #define DRIZZLED_COMMON_H
19
20 #include <unistd.h>
21-#include <stdint.h>
22 #include <drizzled/korr.h>
23
24 /*
25
26=== added file 'drizzled/copy_info.h'
27--- drizzled/copy_info.h 1970-01-01 00:00:00 +0000
28+++ drizzled/copy_info.h 2011-02-12 21:09:18 +0000
29@@ -0,0 +1,121 @@
30+/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
31+ * vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
32+ *
33+ * Copyright (C) 2008 Sun Microsystems, Inc.
34+ *
35+ * This program is free software; you can redistribute it and/or modify
36+ * it under the terms of the GNU General Public License as published by
37+ * the Free Software Foundation; version 2 of the License.
38+ *
39+ * This program is distributed in the hope that it will be useful,
40+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
41+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42+ * GNU General Public License for more details.
43+ *
44+ * You should have received a copy of the GNU General Public License
45+ * along with this program; if not, write to the Free Software
46+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
47+ */
48+
49+#ifndef DRIZZLED_COPY_INFO_H
50+#define DRIZZLED_COPY_INFO_H
51+
52+
53+namespace drizzled
54+{
55+
56+namespace plugin
57+{
58+class Client;
59+class Scheduler;
60+class EventObserverList;
61+}
62+
63+namespace message
64+{
65+class Transaction;
66+class Statement;
67+class Resultset;
68+}
69+
70+namespace internal
71+{
72+struct st_my_thread_var;
73+}
74+
75+namespace table
76+{
77+class Placeholder;
78+}
79+
80+class Lex_input_stream;
81+class user_var_entry;
82+class CopyField;
83+class Table_ident;
84+
85+class TableShareInstance;
86+
87+extern char internal_table_name[2];
88+extern char empty_c_string[1];
89+extern const char **errmesg;
90+
91+#define TC_HEURISTIC_RECOVER_COMMIT 1
92+#define TC_HEURISTIC_RECOVER_ROLLBACK 2
93+extern uint32_t tc_heuristic_recover;
94+
95+/**
96+ @brief
97+ Local storage for proto that are tmp table. This should be enlarged
98+ to hande the entire table-share for a local table. Once Hash is done,
99+ we should consider exchanging the map for it.
100+*/
101+typedef std::map <std::string, message::Table> ProtoCache;
102+
103+/**
104+ The COPY_INFO structure is used by INSERT/REPLACE code.
105+ The schema of the row counting by the INSERT/INSERT ... ON DUPLICATE KEY
106+ UPDATE code:
107+ If a row is inserted then the copied variable is incremented.
108+ If a row is updated by the INSERT ... ON DUPLICATE KEY UPDATE and the
109+ new data differs from the old one then the copied and the updated
110+ variables are incremented.
111+ The touched variable is incremented if a row was touched by the update part
112+ of the INSERT ... ON DUPLICATE KEY UPDATE no matter whether the row
113+ was actually changed or not.
114+*/
115+class CopyInfo
116+{
117+public:
118+ ha_rows records; /**< Number of processed records */
119+ ha_rows deleted; /**< Number of deleted records */
120+ ha_rows updated; /**< Number of updated records */
121+ ha_rows copied; /**< Number of copied records */
122+ ha_rows error_count;
123+ ha_rows touched; /* Number of touched records */
124+ enum enum_duplicates handle_duplicates;
125+ int escape_char, last_errno;
126+ bool ignore;
127+ /* for INSERT ... UPDATE */
128+ List<Item> *update_fields;
129+ List<Item> *update_values;
130+ /* for VIEW ... WITH CHECK OPTION */
131+
132+ CopyInfo() :
133+ records(0),
134+ deleted(0),
135+ updated(0),
136+ copied(0),
137+ error_count(0),
138+ touched(0),
139+ escape_char(0),
140+ last_errno(0),
141+ ignore(0),
142+ update_fields(0),
143+ update_values(0)
144+ { }
145+
146+};
147+
148+} /* namespace drizzled */
149+
150+#endif /* DRIZZLED_COPY_INFO_H */
151
152=== renamed file 'drizzled/copy_info.h' => 'drizzled/copy_info.h.moved'
153=== renamed file 'drizzled/daemon.c' => 'drizzled/daemon.cc'
154--- drizzled/daemon.c 2011-02-02 02:49:45 +0000
155+++ drizzled/daemon.cc 2011-02-12 21:09:18 +0000
156@@ -45,6 +45,9 @@
157 #include <unistd.h>
158 #include <sys/select.h>
159
160+namespace drizzled
161+{
162+
163 int daemonize(int nochdir, int noclose, int wait_sigusr1);
164 int daemon_is_ready(void);
165 void sigusr1_handler(int sig);
166@@ -136,3 +139,5 @@
167 }
168 return (0);
169 }
170+
171+} /* namespace drizzled */
172
173=== modified file 'drizzled/definitions.h'
174--- drizzled/definitions.h 2011-01-24 05:33:52 +0000
175+++ drizzled/definitions.h 2011-02-12 21:09:18 +0000
176@@ -27,10 +27,7 @@
177 #define DRIZZLED_DEFINITIONS_H
178
179 #include <drizzled/enum.h>
180-
181-#include <stdint.h>
182-
183-#include "common.h"
184+#include <drizzled/common.h>
185
186 namespace drizzled
187 {
188
189=== modified file 'drizzled/filesort.cc'
190--- drizzled/filesort.cc 2011-02-12 21:09:14 +0000
191+++ drizzled/filesort.cc 2011-02-12 21:09:18 +0000
192@@ -47,6 +47,7 @@
193 #include <drizzled/atomics.h>
194 #include <drizzled/global_buffer.h>
195
196+#include <drizzled/sort_field.h>
197
198 using namespace std;
199
200
201=== modified file 'drizzled/function/get_user_var.cc'
202--- drizzled/function/get_user_var.cc 2010-12-25 01:27:46 +0000
203+++ drizzled/function/get_user_var.cc 2011-02-12 21:09:18 +0000
204@@ -25,6 +25,7 @@
205 #include <drizzled/item/null.h>
206 #include <drizzled/sql_parse.h>
207 #include <drizzled/session.h>
208+#include <drizzled/user_var_entry.h>
209
210 namespace drizzled
211 {
212
213=== modified file 'drizzled/function/set_user_var.cc'
214--- drizzled/function/set_user_var.cc 2010-12-25 01:27:46 +0000
215+++ drizzled/function/set_user_var.cc 2011-02-12 21:09:18 +0000
216@@ -23,6 +23,7 @@
217 #include <drizzled/field/num.h>
218 #include <drizzled/session.h>
219 #include <drizzled/plugin/client.h>
220+#include <drizzled/user_var_entry.h>
221
222 namespace drizzled
223 {
224
225=== modified file 'drizzled/function/user_var_as_out_param.cc'
226--- drizzled/function/user_var_as_out_param.cc 2010-12-25 01:27:46 +0000
227+++ drizzled/function/user_var_as_out_param.cc 2011-02-12 21:09:18 +0000
228@@ -23,6 +23,7 @@
229
230 #include <drizzled/function/user_var_as_out_param.h>
231 #include <drizzled/session.h>
232+#include <drizzled/user_var_entry.h>
233
234 namespace drizzled
235 {
236
237=== modified file 'drizzled/identifier/catalog.cc'
238--- drizzled/identifier/catalog.cc 2011-02-12 21:09:14 +0000
239+++ drizzled/identifier/catalog.cc 2011-02-12 21:09:18 +0000
240@@ -24,6 +24,7 @@
241
242 #include <drizzled/identifier.h>
243 #include <drizzled/session.h>
244+#include <drizzled/current_session.h>
245 #include <drizzled/internal/my_sys.h>
246
247 #include <drizzled/util/tablename_to_filename.h>
248
249=== modified file 'drizzled/identifier/schema.cc'
250--- drizzled/identifier/schema.cc 2011-02-12 21:09:14 +0000
251+++ drizzled/identifier/schema.cc 2011-02-12 21:09:18 +0000
252@@ -24,6 +24,7 @@
253
254 #include <drizzled/identifier.h>
255 #include <drizzled/session.h>
256+#include <drizzled/current_session.h>
257 #include <drizzled/internal/my_sys.h>
258
259 #include <drizzled/util/tablename_to_filename.h>
260
261=== modified file 'drizzled/include.am'
262--- drizzled/include.am 2011-02-12 21:09:14 +0000
263+++ drizzled/include.am 2011-02-12 21:09:18 +0000
264@@ -64,8 +64,12 @@
265 drizzled/common.h \
266 drizzled/comp_creator.h \
267 drizzled/constrained_value.h \
268+<<<<<<< TREE
269 drizzled/copy_field.h \
270 drizzled/copy_info.h \
271+=======
272+ drizzled/copy_info.h \
273+>>>>>>> MERGE-SOURCE
274 drizzled/create_field.h \
275 drizzled/current_session.h \
276 drizzled/cursor.h \
277@@ -406,6 +410,7 @@
278 drizzled/show.h \
279 drizzled/show_type.h \
280 drizzled/signal_handler.h \
281+ drizzled/sort_field.h \
282 drizzled/sql_base.h \
283 drizzled/sql_error.h \
284 drizzled/sql_lex.h \
285@@ -734,7 +739,7 @@
286 drizzled/locking/global.cc \
287 drizzled/lookup_symbol.cc \
288 drizzled/main.cc \
289- drizzled/daemon.c \
290+ drizzled/daemon.cc \
291 drizzled/message.cc \
292 drizzled/message/cache.cc \
293 drizzled/message/catalog.cc \
294
295=== modified file 'drizzled/item/subselect.cc'
296--- drizzled/item/subselect.cc 2011-02-09 22:48:12 +0000
297+++ drizzled/item/subselect.cc 2011-02-12 21:09:18 +0000
298@@ -39,7 +39,14 @@
299 #include <drizzled/item/ref_null_helper.h>
300 #include <drizzled/item/direct_ref.h>
301 #include <drizzled/join.h>
302+<<<<<<< TREE
303 #include <drizzled/plugin/storage_engine.h>
304+=======
305+#include <drizzled/select_singlerow_subselect.h>
306+#include <drizzled/select_max_min_finder_subselect.h>
307+#include <drizzled/select_exists_subselect.h>
308+#include <drizzled/select_union.h>
309+>>>>>>> MERGE-SOURCE
310
311 namespace drizzled
312 {
313
314=== modified file 'drizzled/item/sum.cc'
315--- drizzled/item/sum.cc 2011-02-12 21:09:14 +0000
316+++ drizzled/item/sum.cc 2011-02-12 21:09:18 +0000
317@@ -36,6 +36,8 @@
318 #include <drizzled/field/int64.h>
319 #include <drizzled/field/date.h>
320 #include <drizzled/field/datetime.h>
321+#include <drizzled/unique.h>
322+
323
324 #include <drizzled/type/decimal.h>
325
326
327=== modified file 'drizzled/join.h'
328--- drizzled/join.h 2011-02-12 21:09:14 +0000
329+++ drizzled/join.h 2011-02-12 21:09:18 +0000
330@@ -33,6 +33,7 @@
331 #include <drizzled/sql_select.h>
332 =======
333 #include <drizzled/sql_select.h>
334+#include <drizzled/tmp_table_param.h>
335 >>>>>>> MERGE-SOURCE
336 #include <bitset>
337
338
339=== modified file 'drizzled/lex_column.h'
340--- drizzled/lex_column.h 2010-12-18 04:43:40 +0000
341+++ drizzled/lex_column.h 2011-02-12 21:09:18 +0000
342@@ -21,6 +21,8 @@
343 #ifndef DRIZZLED_LEX_COLUMN_H
344 #define DRIZZLED_LEX_COLUMN_H
345
346+#include <drizzled/copy_info.h>
347+
348 namespace drizzled
349 {
350
351
352=== modified file 'drizzled/main.cc'
353--- drizzled/main.cc 2011-02-12 21:09:14 +0000
354+++ drizzled/main.cc 2011-02-12 21:09:18 +0000
355@@ -95,8 +95,11 @@
356 #include <drizzled/util/backtrace.h>
357 >>>>>>> MERGE-SOURCE
358
359-extern "C" int daemonize(int nochdir, int noclose, int wait_sigusr1);
360-extern "C" int daemon_is_ready(void);
361+namespace drizzled
362+{
363+extern int daemonize(int nochdir, int noclose, int wait_sigusr1);
364+extern int daemon_is_ready(void);
365+}
366
367 using namespace drizzled;
368 using namespace std;
369@@ -114,7 +117,7 @@
370 */
371 static void my_message_sql(drizzled::error_t error, const char *str, myf MyFlags)
372 {
373- Session *session;
374+ drizzled::Session *session;
375 /*
376 Put here following assertion when situation with EE_* error codes
377 will be fixed
378@@ -373,11 +376,11 @@
379 ReplicationServices &replication_services= ReplicationServices::singleton();
380 (void) replication_services.evaluateRegisteredPlugins();
381
382- if (plugin::Listen::setup())
383+ if (drizzled::plugin::Listen::setup())
384 unireg_abort(1);
385
386- assert(plugin::num_trx_monitored_objects > 0);
387- if (drizzle_rm_tmp_tables() || my_tz_init((Session *)0, default_tz_name))
388+ assert(drizzled::plugin::num_trx_monitored_objects > 0);
389+ if (drizzle_rm_tmp_tables() || my_tz_init(NULL, default_tz_name))
390 {
391 abort_loop= true;
392 select_thread_in_use=0;
393@@ -396,9 +399,9 @@
394
395 /* Send server startup event */
396 {
397- Session::shared_ptr session;
398+ drizzled::Session::shared_ptr session;
399
400- if ((session= Session::make_shared(plugin::Listen::getNullClient(), catalog::local())))
401+ if ((session= drizzled::Session::make_shared(drizzled::plugin::Listen::getNullClient(), catalog::local())))
402 {
403 currentSession().release();
404 currentSession().reset(session.get());
405@@ -418,11 +421,11 @@
406 accepted. The listen.getClient() method will return NULL when the server
407 should be shutdown.
408 */
409- plugin::Client *client;
410- while ((client= plugin::Listen::getClient()) != NULL)
411+ drizzled::plugin::Client *client;
412+ while ((client= drizzled::plugin::Listen::getClient()) != NULL)
413 {
414- Session::shared_ptr session;
415- session= Session::make_shared(client, client->catalog());
416+ drizzled::Session::shared_ptr session;
417+ session= drizzled::Session::make_shared(client, client->catalog());
418
419 if (not session)
420 {
421@@ -431,15 +434,15 @@
422 }
423
424 /* If we error on creation we drop the connection and delete the session. */
425- if (Session::schedule(session))
426- Session::unlink(session);
427+ if (drizzled::Session::schedule(session))
428+ drizzled::Session::unlink(session);
429 }
430
431 /* Send server shutdown event */
432 {
433- Session::shared_ptr session;
434+ drizzled::Session::shared_ptr session;
435
436- if ((session= Session::make_shared(plugin::Listen::getNullClient(), catalog::local())))
437+ if ((session= drizzled::Session::make_shared(drizzled::plugin::Listen::getNullClient(), catalog::local())))
438 {
439 currentSession().release();
440 currentSession().reset(session.get());
441
442=== modified file 'drizzled/module/loader.cc'
443--- drizzled/module/loader.cc 2011-02-12 21:09:14 +0000
444+++ drizzled/module/loader.cc 2011-02-12 21:09:18 +0000
445@@ -519,7 +519,6 @@
446 session->variables.storage_engine= NULL;
447
448 /* we are going to allocate these lazily */
449- session->variables.dynamic_variables_version= 0;
450 session->variables.dynamic_variables_size= 0;
451 session->variables.dynamic_variables_ptr= 0;
452
453@@ -549,7 +548,6 @@
454 free(vars->dynamic_variables_ptr);
455 vars->dynamic_variables_ptr= NULL;
456 vars->dynamic_variables_size= 0;
457- vars->dynamic_variables_version= 0;
458 }
459
460
461
462=== modified file 'drizzled/optimizer/quick_index_merge_select.cc'
463--- drizzled/optimizer/quick_index_merge_select.cc 2011-02-12 21:09:14 +0000
464+++ drizzled/optimizer/quick_index_merge_select.cc 2011-02-12 21:09:18 +0000
465@@ -24,6 +24,7 @@
466 #include <drizzled/optimizer/quick_range_select.h>
467 #include <drizzled/optimizer/quick_index_merge_select.h>
468 #include <drizzled/internal/m_string.h>
469+#include <drizzled/unique.h>
470
471 #include <vector>
472
473
474=== modified file 'drizzled/optimizer/range.cc'
475--- drizzled/optimizer/range.cc 2011-02-12 21:09:14 +0000
476+++ drizzled/optimizer/range.cc 2011-02-12 21:09:18 +0000
477@@ -161,6 +161,7 @@
478 #include <drizzled/records.h>
479 #include <drizzled/internal/my_sys.h>
480 #include <drizzled/internal/iocache.h>
481+#include <drizzled/unique.h>
482 >>>>>>> MERGE-SOURCE
483
484 #include <drizzled/temporal.h> /* Needed in get_mm_leaf() for timestamp -> datetime comparisons */
485
486=== modified file 'drizzled/select_create.h'
487--- drizzled/select_create.h 2011-01-17 06:41:24 +0000
488+++ drizzled/select_create.h 2011-02-12 21:09:18 +0000
489@@ -20,6 +20,8 @@
490 #ifndef DRIZZLED_SELECT_CREATE_H
491 #define DRIZZLED_SELECT_CREATE_H
492
493+#include <drizzled/select_insert.h>
494+
495 namespace drizzled
496 {
497
498
499=== modified file 'drizzled/select_dump.h'
500--- drizzled/select_dump.h 2010-12-18 04:43:40 +0000
501+++ drizzled/select_dump.h 2011-02-12 21:09:18 +0000
502@@ -21,6 +21,8 @@
503 #ifndef DRIZZLED_SELECT_DUMP_H
504 #define DRIZZLED_SELECT_DUMP_H
505
506+#include <drizzled/select_to_file.h>
507+
508 namespace drizzled
509 {
510
511
512=== modified file 'drizzled/select_dumpvar.h'
513--- drizzled/select_dumpvar.h 2011-02-12 21:09:14 +0000
514+++ drizzled/select_dumpvar.h 2011-02-12 21:09:18 +0000
515@@ -22,6 +22,7 @@
516
517 #include <drizzled/error.h>
518 #include <drizzled/function/set_user_var.h>
519+#include <drizzled/var.h>
520
521 #include <vector>
522
523
524=== modified file 'drizzled/select_singlerow_subselect.h'
525--- drizzled/select_singlerow_subselect.h 2010-12-18 04:43:40 +0000
526+++ drizzled/select_singlerow_subselect.h 2011-02-12 21:09:18 +0000
527@@ -21,6 +21,8 @@
528 #ifndef DRIZZLED_SELECT_SINGLEROW_SUBSELECT_H
529 #define DRIZZLED_SELECT_SINGLEROW_SUBSELECT_H
530
531+#include <drizzled/select_subselect.h>
532+
533 namespace drizzled
534 {
535
536
537=== modified file 'drizzled/session.cc'
538--- drizzled/session.cc 2011-02-12 21:09:14 +0000
539+++ drizzled/session.cc 2011-02-12 21:09:18 +0000
540@@ -117,6 +117,23 @@
541
542 #include <drizzled/util/backtrace.h>
543
544+#include <drizzled/table_ident.h>
545+#include <drizzled/user_var_entry.h>
546+#include <drizzled/unique.h>
547+#include <drizzled/var.h>
548+
549+#include <drizzled/select_to_file.h>
550+#include <drizzled/select_export.h>
551+#include <drizzled/select_dump.h>
552+#include <drizzled/select_insert.h>
553+#include <drizzled/select_create.h>
554+#include <drizzled/tmp_table_param.h>
555+#include <drizzled/select_union.h>
556+#include <drizzled/select_subselect.h>
557+#include <drizzled/select_singlerow_subselect.h>
558+#include <drizzled/select_max_min_finder_subselect.h>
559+#include <drizzled/select_exists_subselect.h>
560+
561 using namespace std;
562
563 namespace fs=boost::filesystem;
564
565=== modified file 'drizzled/session.h'
566--- drizzled/session.h 2011-02-12 21:09:14 +0000
567+++ drizzled/session.h 2011-02-12 21:09:18 +0000
568@@ -104,9 +104,6 @@
569 #include "drizzled/sql_lex.h"
570
571 #include "drizzled/visibility.h"
572-=======
573-#include <drizzled/visibility.h>
574->>>>>>> MERGE-SOURCE
575
576 #define MIN_HANDSHAKE_SIZE 6
577
578@@ -146,22 +143,45 @@
579 #define TC_HEURISTIC_RECOVER_ROLLBACK 2
580 extern uint32_t tc_heuristic_recover;
581
582+=======
583+#include <drizzled/visibility.h>
584+
585+#include <drizzled/lex_column.h>
586+#include <drizzled/sql_lex.h>
587+
588+namespace drizzled
589+{
590+
591+>>>>>>> MERGE-SOURCE
592 class select_result;
593-class Time_zone;
594+class Join;
595
596 #define Session_SENTRY_MAGIC 0xfeedd1ff
597 #define Session_SENTRY_GONE 0xdeadbeef
598+<<<<<<< TREE
599
600 extern DRIZZLED_API struct drizzle_system_variables global_system_variables;
601
602-<<<<<<< TREE
603 =======
604-} /* namespace drizzled */
605-
606-#include <drizzled/sql_lex.h>
607-
608-namespace drizzled
609+#define ESCAPE_CHARS "ntrb0ZN" // keep synchronous with READ_INFO::unescape
610+
611+/* Bits in sql_command_flags */
612+
613+enum sql_command_flag_bits
614 {
615+ CF_BIT_CHANGES_DATA,
616+ CF_BIT_HAS_ROW_COUNT,
617+ CF_BIT_STATUS_COMMAND,
618+ CF_BIT_SHOW_TABLE_COMMAND,
619+ CF_BIT_WRITE_LOGS_COMMAND,
620+ CF_BIT_SIZE
621+};
622+
623+static const std::bitset<CF_BIT_SIZE> CF_CHANGES_DATA(1 << CF_BIT_CHANGES_DATA);
624+static const std::bitset<CF_BIT_SIZE> CF_HAS_ROW_COUNT(1 << CF_BIT_HAS_ROW_COUNT);
625+static const std::bitset<CF_BIT_SIZE> CF_STATUS_COMMAND(1 << CF_BIT_STATUS_COMMAND);
626+static const std::bitset<CF_BIT_SIZE> CF_SHOW_TABLE_COMMAND(1 << CF_BIT_SHOW_TABLE_COMMAND);
627+static const std::bitset<CF_BIT_SIZE> CF_WRITE_LOGS_COMMAND(1 << CF_BIT_WRITE_LOGS_COMMAND);
628
629 /**
630 Storage engine specific thread local data.
631@@ -1756,85 +1776,6 @@
632 struct rusage usage;
633 };
634
635-class Join;
636-
637-#define ESCAPE_CHARS "ntrb0ZN" // keep synchronous with READ_INFO::unescape
638-
639-} /* namespace drizzled */
640-
641-/** @TODO why is this in the middle of the file */
642-#include <drizzled/select_to_file.h>
643-#include <drizzled/select_export.h>
644-#include <drizzled/select_dump.h>
645-#include <drizzled/select_insert.h>
646-#include <drizzled/select_create.h>
647-#include <drizzled/tmp_table_param.h>
648-#include <drizzled/select_union.h>
649-#include <drizzled/select_subselect.h>
650-#include <drizzled/select_singlerow_subselect.h>
651-#include <drizzled/select_max_min_finder_subselect.h>
652-#include <drizzled/select_exists_subselect.h>
653-
654-namespace drizzled
655-{
656-
657-/**
658- * A structure used to describe sort information
659- * for a field or item used in ORDER BY.
660- */
661-class SortField
662-{
663-public:
664- Field *field; /**< Field to sort */
665- Item *item; /**< Item if not sorting fields */
666- size_t length; /**< Length of sort field */
667- uint32_t suffix_length; /**< Length suffix (0-4) */
668- Item_result result_type; /**< Type of item */
669- bool reverse; /**< if descending sort */
670- bool need_strxnfrm; /**< If we have to use strxnfrm() */
671-
672- SortField() :
673- field(0),
674- item(0),
675- length(0),
676- suffix_length(0),
677- result_type(STRING_RESULT),
678- reverse(0),
679- need_strxnfrm(0)
680- { }
681-
682-};
683-
684-} /* namespace drizzled */
685-
686-/** @TODO why is this in the middle of the file */
687-
688-#include <drizzled/table_ident.h>
689-#include <drizzled/user_var_entry.h>
690-#include <drizzled/unique.h>
691-#include <drizzled/var.h>
692-#include <drizzled/select_dumpvar.h>
693-
694-namespace drizzled
695-{
696-
697-/* Bits in sql_command_flags */
698-
699-enum sql_command_flag_bits
700-{
701- CF_BIT_CHANGES_DATA,
702- CF_BIT_HAS_ROW_COUNT,
703- CF_BIT_STATUS_COMMAND,
704- CF_BIT_SHOW_TABLE_COMMAND,
705- CF_BIT_WRITE_LOGS_COMMAND,
706- CF_BIT_SIZE
707-};
708-
709-static const std::bitset<CF_BIT_SIZE> CF_CHANGES_DATA(1 << CF_BIT_CHANGES_DATA);
710-static const std::bitset<CF_BIT_SIZE> CF_HAS_ROW_COUNT(1 << CF_BIT_HAS_ROW_COUNT);
711-static const std::bitset<CF_BIT_SIZE> CF_STATUS_COMMAND(1 << CF_BIT_STATUS_COMMAND);
712-static const std::bitset<CF_BIT_SIZE> CF_SHOW_TABLE_COMMAND(1 << CF_BIT_SHOW_TABLE_COMMAND);
713-static const std::bitset<CF_BIT_SIZE> CF_WRITE_LOGS_COMMAND(1 << CF_BIT_WRITE_LOGS_COMMAND);
714
715 namespace display {
716 const std::string &type(drizzled::Session::global_read_lock_t type);
717
718=== modified file 'drizzled/set_var.cc'
719--- drizzled/set_var.cc 2011-02-12 21:09:14 +0000
720+++ drizzled/set_var.cc 2011-02-12 21:09:18 +0000
721@@ -27,6 +27,8 @@
722 #include <drizzled/item/string.h>
723 #include <drizzled/sql_list.h>
724
725+#include <drizzled/function/set_user_var.h>
726+
727 using namespace std;
728
729 namespace drizzled
730
731=== modified file 'drizzled/set_var.h'
732--- drizzled/set_var.h 2011-02-12 21:09:14 +0000
733+++ drizzled/set_var.h 2011-02-12 21:09:18 +0000
734@@ -37,7 +37,6 @@
735 class sys_var;
736 class Item;
737 class Item_func_set_user_var;
738-class Time_zone;
739 typedef struct my_locale_st MY_LOCALE;
740 typedef struct charset_info_st CHARSET_INFO;
741
742
743=== modified file 'drizzled/show.cc'
744--- drizzled/show.cc 2011-02-12 21:09:14 +0000
745+++ drizzled/show.cc 2011-02-12 21:09:18 +0000
746@@ -75,6 +75,8 @@
747 #include <vector>
748 #include <algorithm>
749
750+#include <drizzled/table_ident.h>
751+
752 using namespace std;
753
754 namespace drizzled
755
756=== added file 'drizzled/sort_field.h'
757--- drizzled/sort_field.h 1970-01-01 00:00:00 +0000
758+++ drizzled/sort_field.h 2011-02-12 21:09:18 +0000
759@@ -0,0 +1,70 @@
760+/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
761+ * vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
762+ *
763+ * Copyright (C) 2008 Sun Microsystems, Inc.
764+ *
765+ * This program is free software; you can redistribute it and/or modify
766+ * it under the terms of the GNU General Public License as published by
767+ * the Free Software Foundation; version 2 of the License.
768+ *
769+ * This program is distributed in the hope that it will be useful,
770+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
771+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
772+ * GNU General Public License for more details.
773+ *
774+ * You should have received a copy of the GNU General Public License
775+ * along with this program; if not, write to the Free Software
776+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
777+ */
778+
779+
780+
781+#ifndef DRIZZLED_SORT_FIELD_H
782+#define DRIZZLED_SORT_FIELD_H
783+
784+#include <drizzled/session.h>
785+#include <drizzled/select_to_file.h>
786+#include <drizzled/select_export.h>
787+#include <drizzled/select_dump.h>
788+#include <drizzled/select_insert.h>
789+#include <drizzled/select_create.h>
790+#include <drizzled/tmp_table_param.h>
791+#include <drizzled/select_union.h>
792+#include <drizzled/select_subselect.h>
793+#include <drizzled/select_singlerow_subselect.h>
794+#include <drizzled/select_max_min_finder_subselect.h>
795+#include <drizzled/select_exists_subselect.h>
796+
797+namespace drizzled
798+{
799+
800+/**
801+ * A structure used to describe sort information
802+ * for a field or item used in ORDER BY.
803+ */
804+class SortField
805+{
806+public:
807+ Field *field; /**< Field to sort */
808+ Item *item; /**< Item if not sorting fields */
809+ size_t length; /**< Length of sort field */
810+ uint32_t suffix_length; /**< Length suffix (0-4) */
811+ Item_result result_type; /**< Type of item */
812+ bool reverse; /**< if descending sort */
813+ bool need_strxnfrm; /**< If we have to use strxnfrm() */
814+
815+ SortField() :
816+ field(0),
817+ item(0),
818+ length(0),
819+ suffix_length(0),
820+ result_type(STRING_RESULT),
821+ reverse(0),
822+ need_strxnfrm(0)
823+ { }
824+
825+};
826+
827+} /* namespace drizzled */
828+
829+#endif /* DRIZZLED_SORT_FIELD_H */
830
831=== modified file 'drizzled/sql_derived.cc'
832--- drizzled/sql_derived.cc 2011-02-12 21:09:14 +0000
833+++ drizzled/sql_derived.cc 2011-02-12 21:09:18 +0000
834@@ -19,6 +19,7 @@
835 */
836 #include "config.h"
837 #include <drizzled/sql_select.h>
838+#include <drizzled/select_union.h>
839
840 namespace drizzled
841 {
842
843=== modified file 'drizzled/sql_insert.cc'
844--- drizzled/sql_insert.cc 2011-02-12 21:09:14 +0000
845+++ drizzled/sql_insert.cc 2011-02-12 21:09:18 +0000
846@@ -33,6 +33,8 @@
847 #include <drizzled/plugin/transactional_storage_engine.h>
848
849 #include <drizzled/table/shell.h>
850+#include <drizzled/select_insert.h>
851+#include <drizzled/select_create.h>
852
853 namespace drizzled
854 {
855
856=== modified file 'drizzled/sql_lex.h'
857--- drizzled/sql_lex.h 2011-02-12 21:09:14 +0000
858+++ drizzled/sql_lex.h 2011-02-12 21:09:18 +0000
859@@ -37,6 +37,7 @@
860 #include <drizzled/index_hint.h>
861 #include <drizzled/statement.h>
862 #include <drizzled/optimizer/explain_plan.h>
863+#include <drizzled/system_variables.h>
864
865 #include <bitset>
866 #include <string>
867
868=== modified file 'drizzled/sql_parse.cc'
869--- drizzled/sql_parse.cc 2011-02-12 21:09:14 +0000
870+++ drizzled/sql_parse.cc 2011-02-12 21:09:18 +0000
871@@ -65,6 +65,7 @@
872 #include <algorithm>
873 #include <boost/date_time.hpp>
874 #include <drizzled/internal/my_sys.h>
875+#include <drizzled/table_ident.h>
876
877 using namespace std;
878
879
880=== modified file 'drizzled/sql_select.cc'
881--- drizzled/sql_select.cc 2011-02-12 21:09:14 +0000
882+++ drizzled/sql_select.cc 2011-02-12 21:09:18 +0000
883@@ -100,6 +100,7 @@
884 #include <drizzled/optimizer/quick_ror_intersect_select.h>
885
886 #include <drizzled/filesort.h>
887+#include <drizzled/sort_field.h>
888 >>>>>>> MERGE-SOURCE
889
890 using namespace std;
891
892=== modified file 'drizzled/sql_union.cc'
893--- drizzled/sql_union.cc 2010-12-24 07:15:43 +0000
894+++ drizzled/sql_union.cc 2011-02-12 21:09:18 +0000
895@@ -23,6 +23,7 @@
896 #include <drizzled/item/type_holder.h>
897 #include <drizzled/sql_base.h>
898 #include <drizzled/sql_union.h>
899+#include <drizzled/select_union.h>
900
901 namespace drizzled
902 {
903
904=== modified file 'drizzled/sql_yacc.yy'
905--- drizzled/sql_yacc.yy 2011-02-12 21:09:14 +0000
906+++ drizzled/sql_yacc.yy 2011-02-12 21:09:18 +0000
907@@ -40,6 +40,12 @@
908 #include "config.h"
909 #include <cstdio>
910 #include <drizzled/parser.h>
911+#include <drizzled/table_ident.h>
912+#include <drizzled/function/set_user_var.h>
913+#include <drizzled/select_dumpvar.h>
914+#include <drizzled/select_dump.h>
915+#include <drizzled/select_export.h>
916+#include <drizzled/select_result.h>
917
918 int yylex(void *yylval, void *yysession);
919
920
921=== modified file 'drizzled/statement/create_table.cc'
922--- drizzled/statement/create_table.cc 2011-02-09 22:48:12 +0000
923+++ drizzled/statement/create_table.cc 2011-02-12 21:09:18 +0000
924@@ -25,7 +25,12 @@
925 #include <drizzled/statement/create_table.h>
926 #include <drizzled/message.h>
927 #include <drizzled/identifier.h>
928+<<<<<<< TREE
929 #include <drizzled/plugin/storage_engine.h>
930+=======
931+#include <drizzled/table_ident.h>
932+#include <drizzled/select_create.h>
933+>>>>>>> MERGE-SOURCE
934
935 #include <iostream>
936
937
938=== modified file 'drizzled/statement/insert_select.cc'
939--- drizzled/statement/insert_select.cc 2011-01-22 07:05:32 +0000
940+++ drizzled/statement/insert_select.cc 2011-02-12 21:09:18 +0000
941@@ -24,6 +24,7 @@
942 #include <drizzled/session.h>
943 #include <drizzled/probes.h>
944 #include <drizzled/statement/insert_select.h>
945+#include <drizzled/select_insert.h>
946
947 namespace drizzled
948 {
949
950=== modified file 'drizzled/statement/replace_select.cc'
951--- drizzled/statement/replace_select.cc 2011-01-22 07:05:32 +0000
952+++ drizzled/statement/replace_select.cc 2011-02-12 21:09:18 +0000
953@@ -23,6 +23,8 @@
954 #include <drizzled/lock.h>
955 #include <drizzled/session.h>
956 #include <drizzled/statement/replace_select.h>
957+#include <drizzled/select_insert.h>
958+#include <drizzled/select_result.h>
959
960 namespace drizzled
961 {
962
963=== modified file 'drizzled/sys_var.h'
964--- drizzled/sys_var.h 2011-02-12 21:09:14 +0000
965+++ drizzled/sys_var.h 2011-02-12 21:09:18 +0000
966@@ -26,6 +26,7 @@
967 #include <drizzled/constrained_value.h>
968 #include <drizzled/set_var.h>
969 #include <drizzled/show_type.h>
970+#include <drizzled/typelib.h>
971 #include <drizzled/item_result.h>
972 #include <drizzled/base.h>
973 #include <drizzled/global_charset_info.h>
974@@ -37,7 +38,6 @@
975 {
976
977 class sys_var;
978-class Time_zone;
979 typedef struct my_locale_st MY_LOCALE;
980 typedef struct st_typelib TYPELIB;
981
982
983=== added file 'drizzled/system_variables.h'
984--- drizzled/system_variables.h 1970-01-01 00:00:00 +0000
985+++ drizzled/system_variables.h 2011-02-12 21:09:18 +0000
986@@ -0,0 +1,115 @@
987+/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
988+ * vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
989+ *
990+ * Copyright (C) 2008 Sun Microsystems, Inc.
991+ *
992+ * This program is free software; you can redistribute it and/or modify
993+ * it under the terms of the GNU General Public License as published by
994+ * the Free Software Foundation; version 2 of the License.
995+ *
996+ * This program is distributed in the hope that it will be useful,
997+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
998+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
999+ * GNU General Public License for more details.
1000+ *
1001+ * You should have received a copy of the GNU General Public License
1002+ * along with this program; if not, write to the Free Software
1003+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1004+ */
1005+
1006+#ifndef DRIZZLED_SYSTEM_VARIABLES_H
1007+#define DRIZZLED_SYSTEM_VARIABLES_H
1008+
1009+#include <drizzled/base.h>
1010+#include <drizzled/visibility.h>
1011+
1012+namespace drizzled
1013+{
1014+
1015+namespace plugin
1016+{
1017+class StorageEngine;
1018+}
1019+
1020+class Time_zone;
1021+typedef struct charset_info_st CHARSET_INFO;
1022+typedef struct my_locale_st MY_LOCALE;
1023+
1024+struct drizzle_system_variables
1025+{
1026+ drizzle_system_variables()
1027+ {}
1028+ /*
1029+ How dynamically allocated system variables are handled:
1030+
1031+ The global_system_variables and max_system_variables are "authoritative"
1032+ They both should have the same 'version' and 'size'.
1033+ When attempting to access a dynamic variable, if the session version
1034+ is out of date, then the session version is updated and realloced if
1035+ neccessary and bytes copied from global to make up for missing data.
1036+ */
1037+ char * dynamic_variables_ptr;
1038+ uint32_t dynamic_variables_head; /* largest valid variable offset */
1039+ uint32_t dynamic_variables_size; /* how many bytes are in use */
1040+
1041+ uint64_t myisam_max_extra_sort_file_size;
1042+ uint64_t max_heap_table_size;
1043+ uint64_t tmp_table_size;
1044+ ha_rows select_limit;
1045+ ha_rows max_join_size;
1046+ uint64_t auto_increment_increment;
1047+ uint64_t auto_increment_offset;
1048+ uint64_t bulk_insert_buff_size;
1049+ uint64_t join_buff_size;
1050+ uint32_t max_allowed_packet;
1051+ uint64_t max_error_count;
1052+ uint64_t max_length_for_sort_data;
1053+ size_t max_sort_length;
1054+ uint64_t min_examined_row_limit;
1055+ bool optimizer_prune_level;
1056+ bool log_warnings;
1057+
1058+ uint32_t optimizer_search_depth;
1059+ uint32_t div_precincrement;
1060+ uint64_t preload_buff_size;
1061+ uint32_t read_buff_size;
1062+ uint32_t read_rnd_buff_size;
1063+ bool replicate_query;
1064+ size_t sortbuff_size;
1065+ uint32_t thread_handling;
1066+ uint32_t tx_isolation;
1067+ size_t transaction_message_threshold;
1068+ uint32_t completion_type;
1069+ /* Determines which non-standard SQL behaviour should be enabled */
1070+ uint32_t sql_mode;
1071+ uint64_t max_seeks_for_key;
1072+ size_t range_alloc_block_size;
1073+ uint32_t query_alloc_block_size;
1074+ uint32_t query_prealloc_size;
1075+ uint64_t group_concat_max_len;
1076+ uint64_t pseudo_thread_id;
1077+
1078+ plugin::StorageEngine *storage_engine;
1079+
1080+ /* Only charset part of these variables is sensible */
1081+ const CHARSET_INFO *character_set_filesystem;
1082+
1083+ /* Both charset and collation parts of these variables are important */
1084+ const CHARSET_INFO *collation_server;
1085+
1086+ inline const CHARSET_INFO *getCollation(void)
1087+ {
1088+ return collation_server;
1089+ }
1090+
1091+ /* Locale Support */
1092+ MY_LOCALE *lc_time_names;
1093+
1094+ Time_zone *time_zone;
1095+};
1096+
1097+extern DRIZZLED_API struct drizzle_system_variables global_system_variables;
1098+
1099+} /* namespace drizzled */
1100+
1101+#endif /* DRIZZLED_SYSTEM_VARIABLES_H */
1102
1103=== renamed file 'drizzled/system_variables.h' => 'drizzled/system_variables.h.moved'
1104=== modified file 'drizzled/unique.cc'
1105--- drizzled/unique.cc 2011-02-12 21:09:14 +0000
1106+++ drizzled/unique.cc 2011-02-12 21:09:18 +0000
1107@@ -36,6 +36,7 @@
1108 #include <drizzled/session.h>
1109 #include <drizzled/sql_list.h>
1110 #include <drizzled/internal/iocache.h>
1111+#include <drizzled/unique.h>
1112
1113 #if defined(CMATH_NAMESPACE)
1114 using namespace CMATH_NAMESPACE;
1115
1116=== modified file 'drizzled/user_var_entry.cc'
1117--- drizzled/user_var_entry.cc 2011-02-12 21:09:14 +0000
1118+++ drizzled/user_var_entry.cc 2011-02-12 21:09:18 +0000
1119@@ -20,6 +20,7 @@
1120 #include "config.h"
1121 #include <drizzled/session.h>
1122 #include <drizzled/internal/m_string.h>
1123+#include <drizzled/user_var_entry.h>
1124
1125 namespace drizzled
1126 {
1127
1128=== modified file 'drizzled/user_var_entry.h'
1129--- drizzled/user_var_entry.h 2011-02-12 21:09:14 +0000
1130+++ drizzled/user_var_entry.h 2011-02-12 21:09:18 +0000
1131@@ -22,10 +22,19 @@
1132 #define DRIZZLED_USER_VAR_ENTRY_H
1133
1134 #include <drizzled/query_id.h>
1135+#include <drizzled/lex_string.h>
1136+#include <drizzled/item_result.h>
1137+#include <drizzled/sql_string.h>
1138+#include <drizzled/dtcollation.h>
1139
1140 namespace drizzled
1141 {
1142
1143+namespace type
1144+{
1145+class Decimal;
1146+}
1147+
1148 // this is needed for user_vars hash
1149 class user_var_entry
1150 {
1151@@ -54,7 +63,7 @@
1152 }
1153 LEX_STRING name;
1154 char *value;
1155- ulong length;
1156+ unsigned long length;
1157 size_t size;
1158 query_id_t update_query_id;
1159 query_id_t used_query_id;
1160
1161=== modified file 'plugin/logging_stats/user_commands.cc'
1162--- plugin/logging_stats/user_commands.cc 2010-12-18 04:43:40 +0000
1163+++ plugin/logging_stats/user_commands.cc 2011-02-12 21:09:18 +0000
1164@@ -27,6 +27,7 @@
1165 * THE POSSIBILITY OF SUCH DAMAGE.
1166 */
1167
1168+#include "config.h"
1169 #include "user_commands.h"
1170
1171 using namespace drizzled;
1172
1173=== modified file 'plugin/mysql_protocol/mysql_protocol.cc'
1174--- plugin/mysql_protocol/mysql_protocol.cc 2011-02-12 21:09:14 +0000
1175+++ plugin/mysql_protocol/mysql_protocol.cc 2011-02-12 21:09:18 +0000
1176@@ -35,7 +35,6 @@
1177
1178 #include <drizzled/identifier.h>
1179
1180-#define PROTOCOL_VERSION 10
1181
1182 namespace po= boost::program_options;
1183 using namespace std;
1184@@ -44,6 +43,9 @@
1185 namespace drizzle_plugin
1186 {
1187
1188+static const uint32_t PROTOCOL_VERSION= 10;
1189+static const uint32_t MIN_HANDSHAKE_SIZE= 6;
1190+
1191 std::vector<std::string> ClientMySQLProtocol::mysql_admin_ip_addresses;
1192 static const unsigned int PACKET_BUFFER_EXTRA_ALLOC= 1024;
1193
1194
1195=== modified file 'plugin/session_dictionary/variables.cc'
1196--- plugin/session_dictionary/variables.cc 2011-02-12 21:09:14 +0000
1197+++ plugin/session_dictionary/variables.cc 2011-02-12 21:09:18 +0000
1198@@ -20,6 +20,7 @@
1199
1200 #include "config.h"
1201
1202+#include <drizzled/user_var_entry.h>
1203 #include <plugin/session_dictionary/dictionary.h>
1204
1205 #define LARGEST_USER_VARIABLE_NAME 128

Subscribers

People subscribed via source and target branches