~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/null.h

  • Committer: Olaf van der Spek
  • Date: 2011-06-20 11:52:00 UTC
  • mto: This revision was merged to the branch mainline in revision 2345.
  • Revision ID: olafvdspek@gmail.com-20110620115200-3e1oauzkhoyxr0bl
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
class Field_null : public Field_str
32
32
{
33
 
  static unsigned char null[1];
 
33
  static unsigned char null;
34
34
public:
35
35
 
36
36
  using Field::store;
39
39
  using Field::val_int;
40
40
 
41
41
  Field_null(unsigned char *ptr_arg, uint32_t len_arg, const char *field_name_arg) :
42
 
    Field_str(ptr_arg, len_arg, null, 1, field_name_arg, &my_charset_bin)
 
42
    Field_str(ptr_arg, len_arg, &null, 1, field_name_arg, &my_charset_bin)
43
43
  {}
44
44
 
45
45
  enum_field_types type() const