~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.cc

  • Committer: Brian Aker
  • Date: 2009-10-20 21:51:05 UTC
  • mfrom: (1188.1.2 working)
  • Revision ID: brian@gaz-20091020215105-vomtd4tqq15jl00e
Merge Jay.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1490
1490
  return (error);
1491
1491
}
1492
1492
 
1493
 
/*
1494
 
  Free information allocated by openfrm
1495
 
 
1496
 
  SYNOPSIS
1497
 
    closefrm()
1498
 
    table               Table object to free
1499
 
    free_share          Is 1 if we also want to free table_share
1500
 
*/
 
1493
bool Table::fill_item_list(List<Item> *item_list) const
 
1494
{
 
1495
  /*
 
1496
    All Item_field's created using a direct pointer to a field
 
1497
    are fixed in Item_field constructor.
 
1498
  */
 
1499
  for (Field **ptr= field; *ptr; ptr++)
 
1500
  {
 
1501
    Item_field *item= new Item_field(*ptr);
 
1502
    if (!item || item_list->push_back(item))
 
1503
      return true;
 
1504
  }
 
1505
  return false;
 
1506
}
1501
1507
 
1502
1508
int Table::closefrm(bool free_share)
1503
1509
{