~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/filesort.cc

  • Committer: Brian Aker
  • Date: 2010-12-16 22:50:48 UTC
  • mfrom: (1999.4.3 timestamp)
  • mto: This revision was merged to the branch mainline in revision 2003.
  • Revision ID: brian@tangent.org-20101216225048-e3y1v40yfb42n8wk
Merge in field/optimization on tbale sort/encap position

Show diffs side-by-side

added added

removed removed

Lines of Context:
1029
1029
    if ((field= sort_field->field))
1030
1030
    {
1031
1031
      if (field->getTable() == table)
1032
 
        table->setReadSet(field->field_index);
 
1032
        table->setReadSet(field->position());
1033
1033
    }
1034
1034
    else
1035
1035
    {                                           // Item
1043
1043
    sort_addon_field *addonf= addon_field;
1044
1044
    Field *field;
1045
1045
    for ( ; (field= addonf->field) ; addonf++)
1046
 
      table->setReadSet(field->field_index);
 
1046
      table->setReadSet(field->position());
1047
1047
  }
1048
1048
  else
1049
1049
  {