~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_select.h

  • Committer: Brian Aker
  • Date: 2011-01-29 23:08:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2128.
  • Revision ID: brian@tangent.org-20110129230849-ga5zr8fq1bavtygz
Merge in changes for catalogs usage of constants for identifier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_SQL_SELECT_H
21
21
#define DRIZZLED_SQL_SELECT_H
22
22
 
23
 
#include <drizzled/cached_item.h>
24
 
#include <drizzled/field/varstring.h>
25
 
#include <drizzled/item/null.h>
 
23
#include "drizzled/cached_item.h"
 
24
#include "drizzled/session.h"
 
25
#include "drizzled/field/varstring.h"
 
26
#include "drizzled/item/null.h"
26
27
#include <drizzled/enum_nested_loop_state.h>
27
 
#include <drizzled/optimizer/position.h>
28
 
#include <drizzled/optimizer/sargable_param.h>
29
 
#include <drizzled/optimizer/key_use.h>
30
 
#include <drizzled/join_cache.h>
31
 
#include <drizzled/join_table.h>
32
 
#include <drizzled/records.h>
33
 
#include <drizzled/stored_key.h>
 
28
#include "drizzled/optimizer/position.h"
 
29
#include "drizzled/optimizer/sargable_param.h"
 
30
#include "drizzled/optimizer/key_use.h"
 
31
#include "drizzled/join_cache.h"
 
32
#include "drizzled/join_table.h"
34
33
 
35
34
#include <vector>
36
35
 
37
36
namespace drizzled
38
37
{
39
38
 
40
 
class Item_func;
41
 
class Select_Lex_Unit;
42
39
class select_result;
43
 
class st_dynamic_array;
44
40
 
45
41
/**
46
42
 * @file API and Classes to use when handling where clause
135
131
 
136
132
/** @TODO why is this in the middle of the file??? */
137
133
 
138
 
#include <drizzled/join.h>
 
134
#include "drizzled/join.h"
139
135
 
140
136
namespace drizzled
141
137
{
207
203
                                                 List<Item> &all_fields);
208
204
bool change_group_ref(Session *session, Item_func *expr, Order *group_list, bool *changed);
209
205
bool check_interleaving_with_nj(JoinTable *next);
210
 
void update_const_equal_items(COND *cond, JoinTable *tab);
 
206
 
 
207
int join_read_const_table(JoinTable *tab, optimizer::Position *pos);
 
208
int join_read_system(JoinTable *tab);
211
209
int join_read_const(JoinTable *tab);
212
210
int join_read_key(JoinTable *tab);
213
211
int join_read_always_key(JoinTable *tab);
276
274
                        optimizer::KeyUse *org_keyuse, 
277
275
                        table_map used_tables);
278
276
 
 
277
} /* namespace drizzled */
 
278
 
 
279
/** @TODO why is this in the middle of the file??? */
 
280
 
 
281
#include "drizzled/stored_key.h"
 
282
 
 
283
namespace drizzled
 
284
{
 
285
 
279
286
bool cp_buffer_from_ref(Session *session, table_reference_st *ref);
280
287
int safe_index_read(JoinTable *tab);
281
288
COND *remove_eq_conds(Session *session, COND *cond, Item::cond_result *cond_value);