~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump_mysql.cc

  • Committer: Monty Taylor
  • Date: 2011-03-11 18:48:55 UTC
  • mfrom: (2228.1.8 build)
  • Revision ID: mordred@inaugust.com-20110311184855-1essd3a6xfr7lx6r
Merged Andrew: drizzledump and docs bug fixes
Merged Barry: pbms bugfixes

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