~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump_mysql.cc

  • Committer: Andrew Hutchings
  • Date: 2010-09-23 21:09:07 UTC
  • mto: (1792.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1793.
  • Revision ID: andrew@linuxjedi.co.uk-20100923210907-uhbvkq9fickl4j11
Fix ignore tables

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
  while ((row= drizzle_row_next(result)))
49
49
  {
50
50
    std::string tableName(row[0]);
 
51
    if (not ignoreTable(tableName))
 
52
      continue;
 
53
 
51
54
    DrizzleDumpTableMySQL *table = new DrizzleDumpTableMySQL(tableName, dcon);
52
55
    table->setCollate(row[1]);
53
56
    table->setEngine(row[2]);
80
83
  for (std::vector<std::string>::const_iterator it= table_names.begin(); it != table_names.end(); ++it)
81
84
  {
82
85
    std::string tableName= *it;
 
86
    if (not ignoreTable(tableName))
 
87
      continue;
 
88
 
83
89
    query="SELECT TABLE_NAME, TABLE_COLLATION, ENGINE, AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='";
84
90
    query.append(databaseName);
85
91
    query.append("' AND TABLE_NAME = '");