~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-12 15:07:12 UTC
  • mfrom: (2231 staging)
  • mto: This revision was merged to the branch mainline in revision 2233.
  • Revision ID: olafvdspek@gmail.com-20110312150712-i4k1819u2523lggb
Merge trunk

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);