~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/null.h

  • Committer: Brian Aker
  • Date: 2008-12-04 19:04:01 UTC
  • Revision ID: brian@tangent.org-20081204190401-0aatrta3mo36swbk
Next pass through attribute.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
               unireg_check_arg, field_name_arg, cs)
38
38
    {}
39
39
  enum_field_types type() const { return DRIZZLE_TYPE_NULL;}
40
 
  int  store(const char *to __attribute__((unused)),
41
 
             uint32_t length __attribute__((unused)),
42
 
             const CHARSET_INFO * const cs __attribute__((unused)))
43
 
  { null[0]=1; return 0; }
44
 
  int store(double nr __attribute__((unused)))
45
 
  { null[0]=1; return 0; }
46
 
  int store(int64_t nr __attribute__((unused)),
47
 
            bool unsigned_val __attribute__((unused)))
48
 
  { null[0]=1; return 0; }
49
 
  int store_decimal(const my_decimal *d __attribute__((unused)))
 
40
  int  store(const char *, uint32_t, const CHARSET_INFO * const)
 
41
  { null[0]=1; return 0; }
 
42
  int store(double)
 
43
  { null[0]=1; return 0; }
 
44
  int store(int64_t, bool)
 
45
  { null[0]=1; return 0; }
 
46
  int store_decimal(const my_decimal *)
50
47
  { null[0]=1; return 0; }
51
48
  int reset(void)
52
49
  { return 0; }
55
52
  int64_t val_int(void)
56
53
  { return 0;}
57
54
  my_decimal *val_decimal(my_decimal *) { return 0; }
58
 
  String *val_str(String *value __attribute__((unused)),
59
 
                  String *value2)
 
55
  String *val_str(String *, String *value2)
60
56
  { value2->length(0); return value2;}
61
 
  int cmp(const unsigned char *a __attribute__((unused)),
62
 
          const unsigned char *b __attribute__((unused))) { return 0;}
63
 
  void sort_string(unsigned char *buff __attribute__((unused)),
64
 
                   uint32_t length __attribute__((unused)))  {}
 
57
  int cmp(const unsigned char *, const unsigned char *) { return 0;}
 
58
  void sort_string(unsigned char *, uint32_t)  {}
65
59
  uint32_t pack_length() const { return 0; }
66
60
  void sql_type(String &str) const;
67
61
  uint32_t size_of() const { return sizeof(*this); }