~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to sql/item_sum.h

Merge with 4.0.3
Some simple optimzations, more comments and indentation changes.
Add ` around database in 'use database' in binary log.
Moved max_error_count and max_warning_count to variables struct.
Removed SHOW_WARNS_COUNT and SHOW_ERRORS_COUNT calls.
Changed string functions to use character set of first string argument as default return characterset
(Each string function can change the above assumption if needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
  Item_sum_num(Item *item_par) :Item_sum(item_par) {}
82
82
  Item_sum_num(Item *a, Item* b) :Item_sum(a,b) {}
83
83
  Item_sum_num(List<Item> &list) :Item_sum(list) {}
84
 
  bool fix_fields(THD *,struct st_table_list *);
 
84
  bool fix_fields(THD *, TABLE_LIST *, Item **);
85
85
  longlong val_int() { return (longlong) val(); } /* Real as default */
86
86
  String *val_str(String*str);
87
87
  void reset_field();
151
151
{
152
152
  TABLE *table;
153
153
  table_map used_table_cache;
154
 
  bool fix_fields(THD *thd,TABLE_LIST *tables);
 
154
  bool fix_fields(THD *thd, TABLE_LIST *tables, Item **ref);
155
155
  uint32 *field_lengths;
156
156
  TMP_TABLE_PARAM *tmp_table_param;
157
157
  TREE tree;
293
293
  Item_sum_hybrid(Item *item_par,int sign) :Item_sum(item_par),cmp_sign(sign),
294
294
    used_table_cache(~(table_map) 0)
295
295
  {}
296
 
  bool fix_fields(THD *,struct st_table_list *);
 
296
  bool fix_fields(THD *, TABLE_LIST *, Item **);
297
297
  table_map used_tables() const { return used_table_cache; }
298
298
  bool const_item() const { return !used_table_cache; }
299
299
 
398
398
  { quick_group=0;}
399
399
  ~Item_udf_sum() {}
400
400
  const char *func_name() const { return udf.name(); }
401
 
  bool fix_fields(THD *thd,struct st_table_list *tables)
 
401
  bool fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
402
402
  {
403
403
    return udf.fix_fields(thd,tables,this,this->arg_count,this->args);
404
404
  }