~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/show.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:
391
391
  */
392
392
  old_map= table->use_all_columns(table->read_set);
393
393
 
394
 
  for (ptr=table->field ; (field= *ptr); ptr++)
 
394
  for (ptr= table->getFields() ; (field= *ptr); ptr++)
395
395
  {
396
396
    uint32_t flags = field->flags;
397
397
 
398
 
    if (ptr != table->field)
 
398
    if (ptr != table->getFields())
399
399
      packet->append(STRING_WITH_LEN(",\n"));
400
400
 
401
401
    packet->append(STRING_WITH_LEN("  "));
511
511
                                  strlen(key_part->field->field_name));
512
512
      if (key_part->field &&
513
513
          (key_part->length !=
514
 
           table->field[key_part->fieldnr-1]->key_length()))
 
514
           table->getField(key_part->fieldnr-1)->key_length()))
515
515
      {
516
516
        buff.assign("(");
517
517
        buff.append(to_string((int32_t) key_part->length /