~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_olap.cc

  • Committer: Brian Aker
  • Date: 2008-07-15 06:45:16 UTC
  • Revision ID: brian@tangent.org-20080715064516-fnbq7kowh7w57bxj
Merge Monty's code.

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
 
#include <drizzled/server_includes.h>
30
 
#include <drizzled/sql_select.h>
 
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"
31
36
 
32
37
 
33
38
/****************************************************************************
49
54
  new_select->linkage=OLAP_TYPE;
50
55
  new_select->olap=NON_EXISTING_ONE;
51
56
  new_select->group_list.elements=0;
52
 
  new_select->group_list.first=(unsigned char *)0;
53
 
  new_select->group_list.next=(unsigned char **)&new_select->group_list.first;
 
57
  new_select->group_list.first=(uchar *)0;
 
58
  new_select->group_list.next=(uchar **)&new_select->group_list.first;
54
59
  List<Item> privlist;
55
60
  
56
61
  List_iterator<Item> list_it(select_lex->item_list);
148
153
 
149
154
 
150
155
  if (setup_tables(lex->thd, &select_lex->context, &select_lex->top_join_list,
151
 
                   (TableList *)select_lex->table_list.first
 
156
                   (TABLE_LIST *)select_lex->table_list.first
152
157
                   &select_lex->leaf_tables, false) ||
153
158
      setup_fields(lex->thd, 0, select_lex->item_list, MARK_COLUMNS_READ,
154
159
                   &all_fields,1) ||