~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_strfunc.cc

  • Committer: Brian Aker
  • Date: 2008-10-20 03:40:03 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-20081020034003-t2dcnl0ayr2ymm8k
THD -> Session rename

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 
47
47
 
48
48
 
49
 
bool Item_str_func::fix_fields(THD *thd, Item **ref)
 
49
bool Item_str_func::fix_fields(Session *thd, Item **ref)
50
50
{
51
51
  bool res= Item_func::fix_fields(thd, ref);
52
52
  /*
1276
1276
String *Item_func_database::val_str(String *str)
1277
1277
{
1278
1278
  assert(fixed == 1);
1279
 
  THD *thd= current_thd;
 
1279
  Session *thd= current_thd;
1280
1280
  if (thd->db == NULL)
1281
1281
  {
1282
1282
    null_value= 1;
1317
1317
}
1318
1318
 
1319
1319
 
1320
 
bool Item_func_user::fix_fields(THD *thd, Item **ref)
 
1320
bool Item_func_user::fix_fields(Session *thd, Item **ref)
1321
1321
{
1322
1322
  return (Item_func_sysconst::fix_fields(thd, ref) ||
1323
1323
          init(thd->main_security_ctx.user,
1325
1325
}
1326
1326
 
1327
1327
 
1328
 
bool Item_func_current_user::fix_fields(THD *thd, Item **ref)
 
1328
bool Item_func_current_user::fix_fields(Session *thd, Item **ref)
1329
1329
{
1330
1330
  if (Item_func_sysconst::fix_fields(thd, ref))
1331
1331
    return true;
1509
1509
}
1510
1510
 
1511
1511
 
1512
 
void Item_func_make_set::split_sum_func(THD *thd, Item **ref_pointer_array,
 
1512
void Item_func_make_set::split_sum_func(Session *thd, Item **ref_pointer_array,
1513
1513
                                        List<Item> &fields)
1514
1514
{
1515
1515
  item->split_sum_func2(thd, ref_pointer_array, fields, &item, true);
1603
1603
    return 0;
1604
1604
 
1605
1605
  /*
1606
 
    THD::change_item_tree() should be called only if the tree was
 
1606
    Session::change_item_tree() should be called only if the tree was
1607
1607
    really transformed, i.e. when a new item has been created.
1608
1608
    Otherwise we'll be allocating a lot of unnecessary memory for
1609
1609
    change records at each execution.
2540
2540
{
2541
2541
  assert(fixed == 1);
2542
2542
  char *s;
2543
 
  THD *thd= current_thd;
 
2543
  Session *thd= current_thd;
2544
2544
 
2545
2545
  pthread_mutex_lock(&LOCK_uuid_generator);
2546
2546
  if (! uuid_time) /* first UUID() call. initializing data */