~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/field.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-23 10:31:37 UTC
  • mto: (2247.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2248.
  • Revision ID: olafvdspek@gmail.com-20110323103137-lwevis2tfchgu18u
Propogate return void

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_ITEM_FIELD_H
21
 
#define DRIZZLED_ITEM_FIELD_H
 
20
#pragma once
 
21
 
 
22
#include <drizzled/item/ident.h>
22
23
 
23
24
namespace drizzled
24
25
{
25
26
 
 
27
class COND_EQUAL;
 
28
class Item;
 
29
 
26
30
extern Item **not_found_item;
27
 
class COND_EQUAL;
28
31
 
29
32
class Item_field :public Item_ident
30
33
{
64
67
  bool eq(const Item *item, bool binary_cmp) const;
65
68
  double val_real();
66
69
  int64_t val_int();
67
 
  my_decimal *val_decimal(my_decimal *);
 
70
  type::Decimal *val_decimal(type::Decimal *);
68
71
  String *val_str(String*);
69
72
  double val_result();
70
73
  int64_t val_int_result();
71
74
  String *str_result(String* tmp);
72
 
  my_decimal *val_decimal_result(my_decimal *);
 
75
  type::Decimal *val_decimal_result(type::Decimal *);
73
76
  bool val_bool_result();
74
77
  bool send(plugin::Client *client, String *str_arg);
75
78
  void reset_field(Field *f);
85
88
  int64_t val_int_endpoint(bool left_endp, bool *incl_endp);
86
89
  Field *get_tmp_table_field() { return result_field; }
87
90
  Field *tmp_table_field(Table *) { return result_field; }
88
 
  bool get_date(DRIZZLE_TIME *ltime,uint32_t fuzzydate);
89
 
  bool get_date_result(DRIZZLE_TIME *ltime,uint32_t fuzzydate);
90
 
  bool get_time(DRIZZLE_TIME *ltime);
 
91
  bool get_date(type::Time &ltime,uint32_t fuzzydate);
 
92
  bool get_date_result(type::Time &ltime, uint32_t fuzzydate);
 
93
  bool get_time(type::Time &ltime);
91
94
  bool is_null();
92
95
  void update_null_value();
93
96
  Item *get_tmp_table_item(Session *session);
105
108
  Item *safe_charset_converter(const CHARSET_INFO * const tocs);
106
109
  int fix_outer_field(Session *session, Field **field, Item **reference);
107
110
  virtual Item *update_value_transformer(unsigned char *select_arg);
108
 
  virtual void print(String *str, enum_query_type query_type);
 
111
  virtual void print(String *str);
109
112
 
110
113
  friend class Item_default_value;
111
114
  friend class Item_insert_value;
114
117
 
115
118
} /* namespace drizzled */
116
119
 
117
 
#endif /* DRIZZLED_ITEM_FIELD_H */