~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item.h

  • Committer: Monty Taylor
  • Date: 2008-08-18 23:04:17 UTC
  • mfrom: (327.1.12 drizzle)
  • Revision ID: monty@inaugust.com-20080818230417-442rhihpahnout34
MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
451
451
             PROC_ITEM,COND_ITEM, REF_ITEM, FIELD_STD_ITEM,
452
452
             FIELD_VARIANCE_ITEM, INSERT_VALUE_ITEM,
453
453
             SUBSELECT_ITEM, ROW_ITEM, CACHE_ITEM, TYPE_HOLDER,
454
 
             PARAM_ITEM, TRIGGER_FIELD_ITEM, DECIMAL_ITEM,
455
 
             XPATH_NODESET, XPATH_NODESET_CMP,
 
454
             PARAM_ITEM, DECIMAL_ITEM,
456
455
             VIEW_FIXER_ITEM};
457
456
 
458
457
  enum cond_result { COND_UNDEF,COND_OK,COND_TRUE,COND_FALSE };
509
508
  void init_make_field(Send_field *tmp_field,enum enum_field_types type);
510
509
  virtual void cleanup();
511
510
  virtual void make_field(Send_field *field);
512
 
  Field *make_string_field(TABLE *table);
 
511
  Field *make_string_field(Table *table);
513
512
  virtual bool fix_fields(THD *, Item **);
514
513
  /*
515
514
    Fix after some tables has been pulled out. Basically re-calculate all
693
692
 
694
693
  virtual Field *get_tmp_table_field(void) { return 0; }
695
694
  /* This is also used to create fields in CREATE ... SELECT: */
696
 
  virtual Field *tmp_table_field(TABLE *t_arg __attribute__((unused)))
 
695
  virtual Field *tmp_table_field(Table *t_arg __attribute__((unused)))
697
696
  { return 0; }
698
697
  virtual const char *full_name(void) const { return name ? name : "???"; }
699
698
 
918
917
  // used in row subselects to get value of elements
919
918
  virtual void bring_value() {}
920
919
 
921
 
  Field *tmp_table_field_from_field_type(TABLE *table, bool fixed_length);
 
920
  Field *tmp_table_field_from_field_type(Table *table, bool fixed_length);
922
921
  virtual Item_field *filed_for_view_update() { return 0; }
923
922
 
924
923
  virtual Item *neg_transformer(THD *thd __attribute__((unused))) { return NULL; }
1141
1140
  }
1142
1141
  int64_t val_int_endpoint(bool left_endp, bool *incl_endp);
1143
1142
  Field *get_tmp_table_field() { return result_field; }
1144
 
  Field *tmp_table_field(TABLE *t_arg __attribute__((unused))) { return result_field; }
 
1143
  Field *tmp_table_field(Table *t_arg __attribute__((unused))) { return result_field; }
1145
1144
  bool get_date(DRIZZLE_TIME *ltime,uint fuzzydate);
1146
1145
  bool get_date_result(DRIZZLE_TIME *ltime,uint fuzzydate);
1147
1146
  bool get_time(DRIZZLE_TIME *ltime);
1767
1766
  {}
1768
1767
  ~Item_result_field() {}                       /* Required with gcc 2.95 */
1769
1768
  Field *get_tmp_table_field() { return result_field; }
1770
 
  Field *tmp_table_field(TABLE *t_arg __attribute__((unused)))
 
1769
  Field *tmp_table_field(Table *t_arg __attribute__((unused)))
1771
1770
  { return result_field; }
1772
1771
  table_map used_tables() const { return 1; }
1773
1772
  virtual void fix_length_and_dec()=0;
2499
2498
  my_decimal *val_decimal(my_decimal *);
2500
2499
  String *val_str(String*);
2501
2500
  bool join_types(THD *thd, Item *);
2502
 
  Field *make_field_by_type(TABLE *table);
 
2501
  Field *make_field_by_type(Table *table);
2503
2502
  static uint32_t display_length(Item *item);
2504
2503
  static enum_field_types get_real_type(Item *);
2505
2504
};