Permalink
Browse files

fix case sensitivity bug on table config in PopulateTableList

  • Loading branch information...
1 parent 3680ee3 commit d5f3344d0fecb9c46db68c9ebc8a69e3713aaf12 @ssandler ssandler committed Feb 20, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 TeslaSQL/Agents/Slave.cs
View
@@ -510,8 +510,8 @@ public Slave(IDataUtils sourceDataUtils, IDataUtils destDataUtils, Logger logger
DataTable result = sourceDataUtils.GetTablesWithChanges(dbName, batches);
foreach (DataRow row in result.Rows) {
var changeTable = new ChangeTable(row.Field<string>("CtiTableName"), row.Field<long>("CTID"), row.Field<string>("CtiSchemaName"), Config.Slave);
- //only add the table if it's in our config
- if (tables.Where(t => t.Name == changeTable.name).Count() == 1) {
+ //only add the table if it's in our config, using case insensitive comparison
+ if (tables.Any(t => String.Compare(t.Name, changeTable.name, StringComparison.OrdinalIgnoreCase) == 0)) {
tableList.Add(changeTable);
}
}

0 comments on commit d5f3344

Please sign in to comment.