~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_olap.cc

  • Committer: Monty Taylor
  • Date: 2008-10-16 06:32:30 UTC
  • mto: (511.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 521.
  • Revision ID: monty@inaugust.com-20081016063230-4brxsra0qsmsg84q
Added -Wunused-macros.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
*/
27
27
 
28
28
#ifdef DISABLED_UNTIL_REWRITTEN_IN_4_1
29
 
 
30
 
#ifdef USE_PRAGMA_IMPLEMENTATION
31
 
#pragma implementation                          // gcc: Class implementation
32
 
#endif
33
 
 
34
 
#include "mysql_priv.h"
35
 
#include "sql_select.h"
 
29
#include <drizzled/server_includes.h>
 
30
#include <drizzled/sql_select.h>
36
31
 
37
32
 
38
33
/****************************************************************************
54
49
  new_select->linkage=OLAP_TYPE;
55
50
  new_select->olap=NON_EXISTING_ONE;
56
51
  new_select->group_list.elements=0;
57
 
  new_select->group_list.first=(uchar *)0;
58
 
  new_select->group_list.next=(uchar **)&new_select->group_list.first;
 
52
  new_select->group_list.first=(unsigned char *)0;
 
53
  new_select->group_list.next=(unsigned char **)&new_select->group_list.first;
59
54
  List<Item> privlist;
60
55
  
61
56
  List_iterator<Item> list_it(select_lex->item_list);
153
148
 
154
149
 
155
150
  if (setup_tables(lex->thd, &select_lex->context, &select_lex->top_join_list,
156
 
                   (TABLE_LIST *)select_lex->table_list.first
 
151
                   (TableList *)select_lex->table_list.first
157
152
                   &select_lex->leaf_tables, false) ||
158
153
      setup_fields(lex->thd, 0, select_lex->item_list, MARK_COLUMNS_READ,
159
154
                   &all_fields,1) ||