~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/ref_null_helper.h

  • Committer: Brian Aker
  • Date: 2008-12-15 19:32:58 UTC
  • mfrom: (677.1.2 devel)
  • Revision ID: brian@tangent.org-20081215193258-fsvc1sh9h7a9sb1t
Merge from Monty

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
29
29
     with NULL value.
30
30
*/
31
31
 
32
 
namespace drizzled
33
 
{
34
 
 
35
32
class Item_ref_null_helper: public Item_ref
36
33
{
37
34
protected:
45
42
  double val_real();
46
43
  int64_t val_int();
47
44
  String* val_str(String* s);
48
 
  type::Decimal *val_decimal(type::Decimal *);
 
45
  my_decimal *val_decimal(my_decimal *);
49
46
  bool val_bool();
50
 
  bool get_date(type::Time &ltime, uint32_t fuzzydate);
 
47
  bool get_date(DRIZZLE_TIME *ltime, uint32_t fuzzydate);
51
48
  virtual void print(String *str, enum_query_type query_type);
52
49
  /*
53
50
    we add RAND_TABLE_BIT to prevent moving this item from HAVING to WHERE
60
57
  }
61
58
};
62
59
 
63
 
} /* namespace drizzled */
64
 
 
65
60
#endif /* DRIZZLED_ITEM_REF_NULL_HELPER_H */