~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item.h

  • Committer: Monty Taylor
  • Date: 2008-07-31 18:25:59 UTC
  • mto: (202.3.5 gettextize)
  • mto: This revision was merged to the branch mainline in revision 243.
  • Revision ID: monty@inaugust.com-20080731182559-txjt9f3dfhusxfp8
Renamed MYSQL_TIME to DRIZZLE_TIME.

Show diffs side-by-side

added added

removed removed

Lines of Context:
779
779
  /* Called for items that really have to be split */
780
780
  void split_sum_func2(THD *thd, Item **ref_pointer_array, List<Item> &fields,
781
781
                       Item **ref, bool skip_registered);
782
 
  virtual bool get_date(MYSQL_TIME *ltime,uint fuzzydate);
783
 
  virtual bool get_time(MYSQL_TIME *ltime);
784
 
  virtual bool get_date_result(MYSQL_TIME *ltime,uint fuzzydate)
 
782
  virtual bool get_date(DRIZZLE_TIME *ltime,uint fuzzydate);
 
783
  virtual bool get_time(DRIZZLE_TIME *ltime);
 
784
  virtual bool get_date_result(DRIZZLE_TIME *ltime,uint fuzzydate)
785
785
  { return get_date(ltime,fuzzydate); }
786
786
  /*
787
787
    The method allows to determine nullness of a complex expression 
1147
1147
  int64_t val_int_endpoint(bool left_endp, bool *incl_endp);
1148
1148
  Field *get_tmp_table_field() { return result_field; }
1149
1149
  Field *tmp_table_field(TABLE *t_arg __attribute__((unused))) { return result_field; }
1150
 
  bool get_date(MYSQL_TIME *ltime,uint fuzzydate);
1151
 
  bool get_date_result(MYSQL_TIME *ltime,uint fuzzydate);
1152
 
  bool get_time(MYSQL_TIME *ltime);
 
1150
  bool get_date(DRIZZLE_TIME *ltime,uint fuzzydate);
 
1151
  bool get_date_result(DRIZZLE_TIME *ltime,uint fuzzydate);
 
1152
  bool get_time(DRIZZLE_TIME *ltime);
1153
1153
  bool is_null() { return field->is_null(); }
1154
1154
  void update_null_value();
1155
1155
  Item *get_tmp_table_item(THD *thd);
1275
1275
      */
1276
1276
      CHARSET_INFO *final_character_set_of_str_value;
1277
1277
    } cs_info;
1278
 
    MYSQL_TIME     time;
 
1278
    DRIZZLE_TIME     time;
1279
1279
  } value;
1280
1280
 
1281
1281
  /* Cached values for virtual methods to save us one switch.  */
1307
1307
  int64_t val_int();
1308
1308
  my_decimal *val_decimal(my_decimal*);
1309
1309
  String *val_str(String*);
1310
 
  bool get_time(MYSQL_TIME *tm);
1311
 
  bool get_date(MYSQL_TIME *tm, uint fuzzydate);
 
1310
  bool get_time(DRIZZLE_TIME *tm);
 
1311
  bool get_date(DRIZZLE_TIME *tm, uint fuzzydate);
1312
1312
  int  save_in_field(Field *field, bool no_conversions);
1313
1313
 
1314
1314
  void set_null();
1317
1317
  void set_decimal(const char *str, ulong length);
1318
1318
  bool set_str(const char *str, ulong length);
1319
1319
  bool set_longdata(const char *str, ulong length);
1320
 
  void set_time(MYSQL_TIME *tm, timestamp_type type, uint32_t max_length_arg);
 
1320
  void set_time(DRIZZLE_TIME *tm, timestamp_type type, uint32_t max_length_arg);
1321
1321
  bool set_from_user_var(THD *thd, const user_var_entry *entry);
1322
1322
  void reset();
1323
1323
  /*
1832
1832
  bool val_bool();
1833
1833
  String *val_str(String* tmp);
1834
1834
  bool is_null();
1835
 
  bool get_date(MYSQL_TIME *ltime,uint fuzzydate);
 
1835
  bool get_date(DRIZZLE_TIME *ltime,uint fuzzydate);
1836
1836
  double val_result();
1837
1837
  int64_t val_int_result();
1838
1838
  String *str_result(String* tmp);
1935
1935
  my_decimal *val_decimal(my_decimal *);
1936
1936
  bool val_bool();
1937
1937
  bool is_null();
1938
 
  bool get_date(MYSQL_TIME *ltime,uint fuzzydate);
 
1938
  bool get_date(DRIZZLE_TIME *ltime,uint fuzzydate);
1939
1939
  virtual Ref_Type ref_type() { return DIRECT_REF; }
1940
1940
};
1941
1941
 
2047
2047
  String* val_str(String* s);
2048
2048
  my_decimal *val_decimal(my_decimal *);
2049
2049
  bool val_bool();
2050
 
  bool get_date(MYSQL_TIME *ltime, uint fuzzydate);
 
2050
  bool get_date(DRIZZLE_TIME *ltime, uint fuzzydate);
2051
2051
  virtual void print(String *str, enum_query_type query_type);
2052
2052
  /*
2053
2053
    we add RAND_TABLE_BIT to prevent moving this item from HAVING to WHERE