~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/null.h

  • Committer: Monty Taylor
  • Date: 2010-01-12 21:34:24 UTC
  • mto: This revision was merged to the branch mainline in revision 1268.
  • Revision ID: mordred@inaugust.com-20100112213424-6mslywtlca49mvnk
Updated to pandora-buld v0.94

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
20
20
#ifndef DRIZZLED_ITEM_NULL_H
21
21
#define DRIZZLED_ITEM_NULL_H
22
22
 
23
 
#include <drizzled/charset_info.h>
24
 
#include <drizzled/item/basic_constant.h>
25
 
 
26
 
namespace drizzled
27
 
{
 
23
#include "drizzled/item/basic_constant.h"
28
24
 
29
25
class Item_null :public Item_basic_constant
30
26
{
43
39
  double val_real();
44
40
  int64_t val_int();
45
41
  String *val_str(String *str);
46
 
  type::Decimal *val_decimal(type::Decimal *);
 
42
  my_decimal *val_decimal(my_decimal *);
47
43
  int save_in_field(Field *field, bool no_conversions);
48
44
  int save_safe_in_field(Field *field);
49
 
  bool send(plugin::Client *client, String *str);
 
45
  bool send(drizzled::plugin::Client *client, String *str);
50
46
  enum Item_result result_type () const { return STRING_RESULT; }
51
47
  enum_field_types field_type() const   { return DRIZZLE_TYPE_NULL; }
52
48
  bool basic_const_item() const { return 1; }
70
66
  }
71
67
};
72
68
 
73
 
} /* namespace drizzled */
74
 
 
75
69
#endif /* DRIZZLED_ITEM_NULL_H */