~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump_data.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:
107
107
 
108
108
  os << "(";
109
109
  
110
 
  std::vector<std::string>::iterator i;
111
 
  std::vector<std::string> fields = obj.columns;
 
110
  std::vector<DrizzleDumpIndex::columnData>::iterator i;
 
111
  std::vector<DrizzleDumpIndex::columnData> fields = obj.columns;
112
112
  for (i= fields.begin(); i != fields.end(); ++i)
113
113
  {
114
114
    if (i != fields.begin())
115
115
      os << ",";
116
 
    std::string field= *i;
117
 
    os << "`" << field << "`";
118
 
    if (obj.length > 0)
119
 
      os << "(" << obj.length << ")";
 
116
    os << "`" << (*i).first << "`";
 
117
    if ((*i).second > 0)
 
118
      os << "(" << (*i).second << ")";
120
119
  }
121
120
 
122
121
  os << ")";
528
527
    os << " COMMENT='" << obj.comment << "'";
529
528
  }
530
529
 
 
530
  if (not obj.replicate)
 
531
  {
 
532
    os << " REPLICATE=FALSE";
 
533
  }
 
534
 
531
535
  os << ";" << std::endl << std::endl;
532
536
 
533
537
  return os;