~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/field.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

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
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
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
20
20
#ifndef DRIZZLED_ITEM_FIELD_H
21
21
#define DRIZZLED_ITEM_FIELD_H
22
22
 
 
23
#include <drizzled/item/ident.h>
 
24
 
23
25
namespace drizzled
24
26
{
25
27
 
 
28
class COND_EQUAL;
 
29
class Item;
 
30
 
26
31
extern Item **not_found_item;
27
 
class COND_EQUAL;
28
32
 
29
33
class Item_field :public Item_ident
30
34
{
64
68
  bool eq(const Item *item, bool binary_cmp) const;
65
69
  double val_real();
66
70
  int64_t val_int();
67
 
  my_decimal *val_decimal(my_decimal *);
 
71
  type::Decimal *val_decimal(type::Decimal *);
68
72
  String *val_str(String*);
69
73
  double val_result();
70
74
  int64_t val_int_result();
71
75
  String *str_result(String* tmp);
72
 
  my_decimal *val_decimal_result(my_decimal *);
 
76
  type::Decimal *val_decimal_result(type::Decimal *);
73
77
  bool val_bool_result();
74
78
  bool send(plugin::Client *client, String *str_arg);
75
79
  void reset_field(Field *f);
85
89
  int64_t val_int_endpoint(bool left_endp, bool *incl_endp);
86
90
  Field *get_tmp_table_field() { return result_field; }
87
91
  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);
 
92
  bool get_date(type::Time &ltime,uint32_t fuzzydate);
 
93
  bool get_date_result(type::Time &ltime, uint32_t fuzzydate);
 
94
  bool get_time(type::Time &ltime);
91
95
  bool is_null();
92
96
  void update_null_value();
93
97
  Item *get_tmp_table_item(Session *session);