~clint-fewbar/ubuntu/natty/drizzle/beta1-fixes

« back to all changes in this revision

Viewing changes to client/drizzledump_data.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2011-03-15 10:41:18 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110315104118-eaf0hvlytjdl4zrf
Tags: 2011.03.13-0ubuntu1
* New upstream release.
* Added slave plugin.
* Removed archive, blackhole and blitzdb plugins.
* Moved location of libdrizzle headers.
* Removed drizzleadmin manpage patch.
* Add drizzle_safe_write_string to symbols.

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;