~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_olap.cc

  • Committer: Brian Aker
  • Date: 2009-02-07 22:02:41 UTC
  • Revision ID: brian@tangent.org-20090207220241-ez3828o1246ab2sp
Removing on typedeffed class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
****************************************************************************/
37
37
 
38
38
 
39
 
static int make_new_olap_select(LEX *lex, SELECT_LEX *select_lex, List<Item> new_fields)
 
39
static int make_new_olap_select(LEX *lex, Select_Lex *select_lex, List<Item> new_fields)
40
40
{
41
41
  Session       *session=current_session;
42
42
  Item *item, *new_item;
43
43
  Item_null *constant= new Item_null("ALL");
44
44
 
45
 
  SELECT_LEX *new_select = (SELECT_LEX *) session->memdup((char*) select_lex, sizeof(*select_lex));
 
45
  Select_Lex *new_select = (Select_Lex *) session->memdup((char*) select_lex, sizeof(*select_lex));
46
46
  if (!new_select)
47
47
    return 1;
48
48
  lex->last_selects->next=new_select;
100
100
****************************************************************************/
101
101
 
102
102
static int  olap_combos(List<Item> old_fields, List<Item> new_fields, Item *item, LEX *lex,
103
 
                              SELECT_LEX *select_lex, int position, int selection, int num_fields,
 
103
                              Select_Lex *select_lex, int position, int selection, int num_fields,
104
104
                              int num_new_fields)
105
105
{
106
106
  int sl_return = 0;
130
130
  Returns 0 if OK, 1 if error, -1 if error already printed to client
131
131
****************************************************************************/
132
132
 
133
 
int handle_olaps(LEX *lex, SELECT_LEX *select_lex)
 
133
int handle_olaps(LEX *lex, Select_Lex *select_lex)
134
134
{
135
135
  List<Item> item_list_copy, new_item_list;
136
136
  item_list_copy.empty();