~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_strfunc.h

  • Committer: Brian Aker
  • Date: 2008-10-20 04:28:21 UTC
  • mto: (492.3.21 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: brian@tangent.org-20081020042821-rqqdrccuu8195k3y
Second pass of thd cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  my_decimal *val_decimal(my_decimal *);
37
37
  enum Item_result result_type () const { return STRING_RESULT; }
38
38
  void left_right_max_length();
39
 
  bool fix_fields(Session *thd, Item **ref);
 
39
  bool fix_fields(Session *session, Item **ref);
40
40
};
41
41
 
42
42
 
256
256
    assert(fixed == 1);
257
257
    return (null_value ? 0 : &str_value);
258
258
  }
259
 
  bool fix_fields(Session *thd, Item **ref);
 
259
  bool fix_fields(Session *session, Item **ref);
260
260
  void fix_length_and_dec()
261
261
  {
262
262
    max_length= (USERNAME_CHAR_LENGTH + HOSTNAME_LENGTH + 1) *
279
279
public:
280
280
  Item_func_current_user(Name_resolution_context *context_arg)
281
281
    : context(context_arg) {}
282
 
  bool fix_fields(Session *thd, Item **ref);
 
282
  bool fix_fields(Session *session, Item **ref);
283
283
  const char *func_name() const { return "current_user"; }
284
284
  const char *fully_qualified_func_name() const { return "current_user()"; }
285
285
};
316
316
public:
317
317
  Item_func_make_set(Item *a,List<Item> &list) :Item_str_func(list),item(a) {}
318
318
  String *val_str(String *str);
319
 
  bool fix_fields(Session *thd, Item **ref)
 
319
  bool fix_fields(Session *session, Item **ref)
320
320
  {
321
321
    assert(fixed == 0);
322
 
    return ((!item->fixed && item->fix_fields(thd, &item)) ||
 
322
    return ((!item->fixed && item->fix_fields(session, &item)) ||
323
323
            item->check_cols(1) ||
324
 
            Item_func::fix_fields(thd, ref));
 
324
            Item_func::fix_fields(session, ref));
325
325
  }
326
 
  void split_sum_func(Session *thd, Item **ref_pointer_array, List<Item> &fields);
 
326
  void split_sum_func(Session *session, Item **ref_pointer_array, List<Item> &fields);
327
327
  void fix_length_and_dec();
328
328
  void update_used_tables();
329
329
  const char *func_name() const { return "make_set"; }