~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/ref_null_helper.h

  • Committer: Mark Atwood
  • Date: 2011-08-11 03:05:03 UTC
  • mfrom: (2385.1.12 refactor4)
  • Revision ID: me@mark.atwood.name-20110811030503-rp9xjihc5x3y0x4q
mergeĀ lp:~olafvdspek/drizzle/refactor4

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_REF_NULL_HELPER_H
21
 
#define DRIZZLED_ITEM_REF_NULL_HELPER_H
 
20
#pragma once
22
21
 
23
22
/*
24
23
  An object of this class:
29
28
     with NULL value.
30
29
*/
31
30
 
32
 
namespace drizzled
33
 
{
 
31
namespace drizzled {
34
32
 
35
 
class Item_ref_null_helper: public Item_ref
 
33
class Item_ref_null_helper : public Item_ref
36
34
{
37
35
protected:
38
36
  Item_in_subselect* owner;
48
46
  type::Decimal *val_decimal(type::Decimal *);
49
47
  bool val_bool();
50
48
  bool get_date(type::Time &ltime, uint32_t fuzzydate);
51
 
  virtual void print(String *str, enum_query_type query_type);
 
49
  virtual void print(String *str);
52
50
  /*
53
51
    we add RAND_TABLE_BIT to prevent moving this item from HAVING to WHERE
54
52
  */
62
60
 
63
61
} /* namespace drizzled */
64
62
 
65
 
#endif /* DRIZZLED_ITEM_REF_NULL_HELPER_H */