~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/num.h

  • Committer: Monty Taylor
  • Date: 2009-09-30 07:01:32 UTC
  • mto: This revision was merged to the branch mainline in revision 1184.
  • Revision ID: mordred@inaugust.com-20090930070132-b1ol1xu1rpajdddy
Small namespace cleanup.

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 DRIZZLE_SERVER_FIELD_NUM
22
 
#define DRIZZLE_SERVER_FIELD_NUM
 
21
#ifndef DRIZZLED_FIELD_NUM_H
 
22
#define DRIZZLED_FIELD_NUM_H
23
23
 
24
24
class Field_num :public Field {
25
25
public:
31
31
            const char *field_name_arg,
32
32
            uint8_t dec_arg, bool zero_arg, bool unsigned_arg);
33
33
  Item_result result_type () const { return REAL_RESULT; }
34
 
  friend class Create_field;
35
 
  void make_field(Send_field *);
 
34
  friend class CreateField;
 
35
  void make_field(SendField *);
36
36
  uint32_t decimals() const { return (uint32_t) dec; }
37
37
  uint32_t size_of() const { return sizeof(*this); }
38
38
  bool eq_def(Field *field);
39
39
  int store_decimal(const my_decimal *);
40
40
  my_decimal *val_decimal(my_decimal *);
41
 
  uint32_t is_equal(Create_field *new_field);
 
41
  uint32_t is_equal(CreateField *new_field);
42
42
  int check_int(const CHARSET_INFO * const cs, const char *str, int length,
43
43
                const char *int_end, int error);
44
44
  bool get_int(const CHARSET_INFO * const cs, const char *from, uint32_t len,
47
47
};
48
48
 
49
49
 
50
 
#endif
 
50
#endif /* DRIZZLED_FIELD_NUM_H */