~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/null.h

  • Committer: Brian Aker
  • Date: 2009-10-07 16:55:53 UTC
  • mfrom: (1161.2.1 bug444827)
  • Revision ID: brian@gaz-20091007165553-9tnp7liw1k9g6gvc
Merge Padraig

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_FIELD_NULL_H
22
 
#define DRIZZLED_FIELD_NULL_H
 
21
#ifndef DRIZZLE_SERVER_FIELD_NULL
 
22
#define DRIZZLE_SERVER_FIELD_NULL
23
23
 
24
24
#include <drizzled/field/str.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
 
 
29
26
/*
30
27
 * Everything saved in this will disappear. It will always return NULL
31
28
 */
70
67
    null[0]= 1;
71
68
    return 0;
72
69
  }
73
 
  int store_decimal(const type::Decimal *)
 
70
  int store_decimal(const my_decimal *)
74
71
  {
75
72
    null[0]= 1;
76
73
    return 0;
87
84
  {
88
85
    return 0;
89
86
  }
90
 
  type::Decimal *val_decimal(type::Decimal *)
 
87
  my_decimal *val_decimal(my_decimal *)
91
88
  {
92
89
    return 0;
93
90
  }
117
114
  }
118
115
};
119
116
 
120
 
} /* namespace drizzled */
121
 
 
122
 
#endif /* DRIZZLED_FIELD_NULL_H */
 
117
#endif