~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump_mysql.cc

  • Committer: Olaf van der Spek
  • Date: 2011-03-24 00:16:14 UTC
  • mto: This revision was merged to the branch mainline in revision 2251.
  • Revision ID: olafvdspek@gmail.com-20110324001614-wvmgc6eg52oq2321
Remove const_reference and reference from Session

Show diffs side-by-side

added added

removed removed

Lines of Context:
291
291
      index->isPrimary= (strcmp(row[2], "PRIMARY") == 0);
292
292
      index->isUnique= (strcmp(row[1], "0") == 0);
293
293
      index->isHash= (strcmp(row[10], "HASH") == 0);
294
 
      index->length= (row[7]) ? boost::lexical_cast<uint32_t>(row[7]) : 0;
295
294
      lastKey= row[2];
296
295
      firstIndex= false;
297
296
    }
298
 
    index->columns.push_back(row[4]);
 
297
    uint32_t length= (row[7]) ? boost::lexical_cast<uint32_t>(row[7]) : 0;
 
298
    index->columns.push_back(std::make_pair(row[4], length));
299
299
  }
300
300
  if (!firstIndex)
301
301
    indexes.push_back(index);