~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/outer_ref.h

Merged from Toru - removal of my_time_t.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
 
20
#include <drizzled/item/direct_ref.h>
 
21
 
20
22
#ifndef DRIZZLED_ITEM_OUTER_REF_H
21
23
#define DRIZZLED_ITEM_OUTER_REF_H
22
24
 
23
25
#include <drizzled/item/ref.h>
24
26
#include <drizzled/item/direct_ref.h>
25
 
#include <drizzled/item/field.h>
26
27
 
27
28
/*
28
29
  Class for outer fields.
34
35
  Item_field::fix_outer_field() functions.
35
36
*/
36
37
 
37
 
namespace drizzled
38
 
{
39
 
 
40
38
class Item_outer_ref :public Item_direct_ref
41
39
{
42
40
public:
71
69
    outer_ref->save_org_in_field(result_field);
72
70
  }
73
71
  bool fix_fields(Session *, Item **);
74
 
  void fix_after_pullout(Select_Lex *new_parent, Item **ref);
 
72
  void fix_after_pullout(st_select_lex *new_parent, Item **ref);
75
73
  table_map used_tables() const
76
74
  {
77
75
    return (*ref)->const_item() ? 0 : OUTER_REF_TABLE_BIT;
79
77
  virtual Ref_Type ref_type() { return OUTER_REF; }
80
78
};
81
79
 
82
 
} /* namespace drizzled */
83
80
 
84
81
#endif /* DRIZZLED_ITEM_OUTER_REF_H */