~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.cc

  • Committer: Brian Aker
  • Date: 2010-06-05 00:14:39 UTC
  • mto: This revision was merged to the branch mainline in revision 1592.
  • Revision ID: brian@gir-20100605001439-kn5v6oaspacx5q6l
Merge in change to getTable() to private the field objects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
  /* First collect all fields from table which isn't in drop_list */
274
274
  Field **f_ptr;
275
275
  Field *field;
276
 
  for (f_ptr= table->field; (field= *f_ptr); f_ptr++)
 
276
  for (f_ptr= table->getFields(); (field= *f_ptr); f_ptr++)
277
277
  {
278
278
    /* Check if field should be dropped */
279
279
    AlterDrop *drop;
1419
1419
  List_iterator<CreateField> it(create);
1420
1420
  CreateField *def;
1421
1421
  copy_end=copy;
1422
 
  for (Field **ptr=to->field ; *ptr ; ptr++)
 
1422
  for (Field **ptr= to->getFields(); *ptr ; ptr++)
1423
1423
  {
1424
1424
    def=it++;
1425
1425
    if (def->field)