~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cached_item.cc

Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  Create right type of Cached_item for an item.
37
37
*/
38
38
 
39
 
Cached_item *new_Cached_item(Session *session, Item *item,
40
 
                             bool use_result_field)
 
39
Cached_item *new_Cached_item(Session *session, Item *item)
41
40
{
42
41
  if (item->real_item()->type() == Item::FIELD_ITEM &&
43
42
      !(((Item_field *) (item->real_item()))->field->flags & BLOB_FLAG))
44
43
  {
45
44
    Item_field *real_item= (Item_field *) item->real_item();
46
 
    Field *cached_field= use_result_field ? real_item->result_field :
47
 
                                            real_item->field;
 
45
    Field *cached_field= real_item->field;
48
46
    return new Cached_item_field(cached_field);
49
47
  }
50
48
  switch (item->result_type()) {