~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump_drizzle.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:
47
47
  while ((row= drizzle_row_next(result)))
48
48
  {
49
49
    std::string tableName(row[0]);
 
50
    if (not ignoreTable(tableName))
 
51
      continue;
 
52
 
50
53
    DrizzleDumpTable *table = new DrizzleDumpTableDrizzle(tableName, dcon);
51
54
    table->collate= row[1];
52
55
    table->engineName= row[2];
75
78
  for (std::vector<std::string>::const_iterator it= table_names.begin(); it != table_names.end(); ++it)
76
79
  {
77
80
    std::string tableName= *it;
 
81
    if (not ignoreTable(tableName))
 
82
      continue;
 
83
 
78
84
    query="SELECT TABLE_NAME, TABLE_COLLATION, ENGINE FROM DATA_DICTIONARY.TABLES WHERE TABLE_SCHEMA='";
79
85
    query.append(databaseName);
80
86
    query.append("' AND TABLE_NAME = '");
85
91
 
86
92
    if ((row= drizzle_row_next(result)))
87
93
    {
88
 
      DrizzleDumpTableMySQL *table = new DrizzleDumpTableMySQL(tableName, dcon);
89
 
      DrizzleDumpTable *table = new DrizzleDumpTableDrizzle(tableName, dcon);
 
94
      DrizzleDumpTableDrizzle *table = new DrizzleDumpTableDrizzle(tableName, dcon);
90
95
      table->collate= row[1];
91
96
      table->engineName= row[2];
92
97
      table->autoIncrement= 0;