~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/ref.h

  • Committer: Monty Taylor
  • Date: 2009-08-17 18:46:08 UTC
  • mto: (1182.1.1 staging)
  • mto: This revision was merged to the branch mainline in revision 1183.
  • Revision ID: mordred@inaugust.com-20090817184608-0b2emowpjr9m6le7
"Fixed" the deadlock test. I'd still like someone to look at what's going on here.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_ITEM_REF_H
21
21
#define DRIZZLED_ITEM_REF_H
22
22
 
23
 
#include "drizzled/item/ident.h"
24
 
 
25
 
namespace drizzled
26
 
{
27
 
 
28
23
class Item_ref :public Item_ident
29
24
{
30
25
protected:
62
57
  enum Type type() const                { return REF_ITEM; }
63
58
  bool eq(const Item *item, bool binary_cmp) const
64
59
  {
65
 
    const Item *it= item->real_item();
 
60
    Item *it= ((Item *) item)->real_item();
66
61
    return ref && (*ref)->eq(it, binary_cmp);
67
62
  }
68
63
  double val_real();
77
72
  String *str_result(String* tmp);
78
73
  my_decimal *val_decimal_result(my_decimal *);
79
74
  bool val_bool_result();
80
 
  bool send(plugin::Client *client, String *tmp);
 
75
  bool send(Protocol *prot, String *tmp);
81
76
  void make_field(SendField *field);
82
77
  bool fix_fields(Session *, Item **);
83
78
  void fix_after_pullout(Select_Lex *new_parent, Item **ref);
120
115
    return (*ref)->result_as_int64_t();
121
116
  }
122
117
  void cleanup();
 
118
  Item_field *filed_for_view_update()
 
119
    { return (*ref)->filed_for_view_update(); }
123
120
  virtual Ref_Type ref_type() { return REF; }
124
121
 
125
122
  // Row emulation: forwarding of ROW-related calls to ref
149
146
    if (ref && result_type() == ROW_RESULT)
150
147
      (*ref)->bring_value();
151
148
  }
152
 
  bool basic_const_item() const
153
 
  {
154
 
    return (*ref)->basic_const_item();
155
 
  }
 
149
 
156
150
};
157
151
 
158
 
} /* namespace drizzled */
159
 
 
160
152
#endif /* DRIZZLED_ITEM_REF_H */