~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/null.h

  • Committer: Mark Atwood
  • Date: 2011-07-07 02:23:07 UTC
  • mfrom: (2318.6.116 refactor18)
  • Revision ID: me@mark.atwood.name-20110707022307-4db00nqaaczzc3jv
mergeĀ lp:~olafvdspek/drizzle/refactor18

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
namespace drizzled {
26
26
 
27
 
class Item_null :public Item_basic_constant
 
27
class Item_null : public Item_basic_constant
28
28
{
29
29
public:
30
30
 
31
 
  Item_null(char *name_par=0)
 
31
  Item_null(const char *name_par=0)
32
32
  {
33
33
    maybe_null= null_value= true;
34
34
    max_length= 0;
35
 
    name= name_par ? name_par : (char*) "NULL";
 
35
    name= name_par ? name_par : "NULL";
36
36
    fixed= 1;
37
37
    collation.set(&my_charset_bin, DERIVATION_IGNORABLE);
38
38
  }
39
 
  enum Type type() const { return NULL_ITEM; }
 
39
  Type type() const { return NULL_ITEM; }
40
40
  bool eq(const Item *item, bool binary_cmp) const;
41
41
  double val_real();
42
42
  int64_t val_int();