~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/null.h

  • Committer: Monty Taylor
  • Date: 2008-08-02 01:03:15 UTC
  • mto: (236.1.42 codestyle)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: monty@inaugust.com-20080802010315-65h5938pymg9d99z
Moved m4 macros to top-level m4 dir, per GNU standards (and where gettext wanted it :)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLE_SERVER_FIELD_NULL
22
22
#define DRIZZLE_SERVER_FIELD_NULL
23
23
 
 
24
#include <drizzled/mysql_priv.h>
 
25
 
24
26
/* 
25
27
  Everything saved in this will disappear. It will always return NULL 
26
28
 */
30
32
public:
31
33
  Field_null(uchar *ptr_arg, uint32_t len_arg,
32
34
             enum utype unireg_check_arg, const char *field_name_arg,
33
 
             const CHARSET_INFO * const cs)
 
35
             CHARSET_INFO *cs)
34
36
    :Field_str(ptr_arg, len_arg, null, 1,
35
37
               unireg_check_arg, field_name_arg, cs)
36
38
    {}
37
39
  enum_field_types type() const { return DRIZZLE_TYPE_NULL;}
38
40
  int  store(const char *to __attribute__((unused)),
39
41
             uint length __attribute__((unused)),
40
 
             const CHARSET_INFO * const cs __attribute__((unused)))
 
42
             CHARSET_INFO *cs __attribute__((unused)))
41
43
  { null[0]=1; return 0; }
42
44
  int store(double nr __attribute__((unused)))
43
45
  { null[0]=1; return 0; }