~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_timefunc.h

  • Committer: David Axmark
  • Date: 2008-11-05 05:50:56 UTC
  • mto: (584.1.3 devel)
  • mto: This revision was merged to the branch mainline in revision 586.
  • Revision ID: davida@davids-laptop-20081105055056-bt8ajhvihu0j28kp
Changed NEWDATE to DATE. One failing test but I think its somewhere else in the code 
(func_math).

Show diffs side-by-side

added added

removed removed

Lines of Context:
342
342
  Item_date() :Item_func() {}
343
343
  Item_date(Item *a) :Item_func(a) {}
344
344
  enum Item_result result_type () const { return STRING_RESULT; }
345
 
  enum_field_types field_type() const { return DRIZZLE_TYPE_NEWDATE; }
 
345
  enum_field_types field_type() const { return DRIZZLE_TYPE_DATE; }
346
346
  String *val_str(String *str);
347
347
  int64_t val_int();
348
348
  double val_real() { return val_real_from_decimal(); }
783
783
  bool get_date(DRIZZLE_TIME *ltime, uint32_t fuzzy_date);
784
784
  bool get_time(DRIZZLE_TIME *ltime);
785
785
  const char *cast_type() const { return "date"; }
786
 
  enum_field_types field_type() const { return DRIZZLE_TYPE_NEWDATE; }
 
786
  enum_field_types field_type() const { return DRIZZLE_TYPE_DATE; }
787
787
  Field *tmp_table_field(Table *table)
788
788
  {
789
789
    return tmp_table_field_from_field_type(table, 0);
880
880
  Item_func_makedate(Item *a,Item *b) :Item_date_func(a,b) {}
881
881
  String *val_str(String *str);
882
882
  const char *func_name() const { return "makedate"; }
883
 
  enum_field_types field_type() const { return DRIZZLE_TYPE_NEWDATE; }
 
883
  enum_field_types field_type() const { return DRIZZLE_TYPE_DATE; }
884
884
  void fix_length_and_dec()
885
885
  { 
886
886
    decimals=0;