~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field.h

  • Committer: Brian Aker
  • Date: 2010-12-27 19:18:58 UTC
  • mfrom: (2035 staging)
  • mto: (2035.1.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2037.
  • Revision ID: brian@tangent.org-20101227191858-h11rg8ncrkiklg3f
Manage merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#define DRIZZLED_FIELD_H
27
27
 
28
28
#include "drizzled/sql_error.h"
29
 
#include "drizzled/decimal.h"
 
29
#include "drizzled/type/decimal.h"
30
30
#include "drizzled/key_map.h"
31
31
#include "drizzled/sql_list.h"
32
32
#include "drizzled/structs.h"
199
199
                    const CHARSET_INFO * const cs)=0;
200
200
  virtual int store(double nr)=0;
201
201
  virtual int store(int64_t nr, bool unsigned_val)=0;
202
 
  virtual int store_decimal(const my_decimal *d)=0;
 
202
  virtual int store_decimal(const type::Decimal *d)=0;
203
203
  int store_and_check(enum_check_fields check_level,
204
204
                      const char *to,
205
205
                      uint32_t length,
210
210
    @note
211
211
      Needs to be changed if/when we want to support different time formats.
212
212
  */
213
 
  virtual int store_time(DRIZZLE_TIME *ltime, enum enum_drizzle_timestamp_type t_type);
 
213
  virtual int store_time(type::Time *ltime, enum enum_drizzle_timestamp_type t_type);
214
214
  virtual double val_real()=0;
215
215
  virtual int64_t val_int()=0;
216
 
  virtual my_decimal *val_decimal(my_decimal *);
 
216
  virtual type::Decimal *val_decimal(type::Decimal *);
217
217
  String *val_str_internal(String *str)
218
218
  {
219
219
    return val_str(str, str);
584
584
  }
585
585
  void copy_from_tmp(int offset);
586
586
  uint32_t fill_cache_field(CacheField *copy);
587
 
  virtual bool get_date(DRIZZLE_TIME *ltime,uint32_t fuzzydate);
588
 
  virtual bool get_time(DRIZZLE_TIME *ltime);
 
587
  virtual bool get_date(type::Time *ltime,uint32_t fuzzydate);
 
588
  virtual bool get_time(type::Time *ltime);
589
589
  virtual const CHARSET_INFO *charset(void) const { return &my_charset_bin; }
590
590
  virtual const CHARSET_INFO *sort_charset(void) const { return charset(); }
591
591
  virtual bool has_charset(void) const { return false; }
710
710
    @return
711
711
      value converted from val
712
712
  */
713
 
  int64_t convert_decimal2int64_t(const my_decimal *val,
 
713
  int64_t convert_decimal2int64_t(const type::Decimal *val,
714
714
                                  bool unsigned_flag,
715
715
                                  int *err);
716
716
  /* The max. number of characters */