Skip to content
Browse files

merge w/ master

  • Loading branch information...
2 parents f3fc2c9 + 90247e7 commit b8bf29dba24398ed16dd8f81e06b9ff221baab70 @ssandler ssandler committed Feb 21, 2013
Showing with 9 additions and 3 deletions.
  1. +9 −3 TeslaSQL/Agents/Slave.cs
View
12 TeslaSQL/Agents/Slave.cs
@@ -328,8 +328,14 @@ public Slave(IDataUtils sourceDataUtils, IDataUtils destDataUtils, Logger logger
var consolidatedTables = new List<ChangeTable>();
foreach (var table in Config.Tables) {
if (!lu.ContainsKey(table.Name)) {
- logger.Log("No changes captured for " + table.Name, LogLevel.Info);
- continue;
+ //ugly case sensitivity hack
+ var kvp = lu.FirstOrDefault(l => String.Compare(l.Key, table.Name, StringComparison.OrdinalIgnoreCase) == 0);
+ if (kvp.Key != null) {
+ lu[table.Name] = lu[kvp.Key];
+ } else {
+ logger.Log("No changes captured for " + table.Name, LogLevel.Info);
+ continue;
+ }
}
var lastChangeTable = lu[table.Name].OrderByDescending(c => c.CTID).First();
consolidatedTables.Add(lastChangeTable);
@@ -478,7 +484,7 @@ public Slave(IDataUtils sourceDataUtils, IDataUtils destDataUtils, Logger logger
if (!changeTables.Any(s => String.Compare(s.name, confTable.Name, StringComparison.OrdinalIgnoreCase) == 0)) {
continue;
}
- if (hasArchive.ContainsKey(confTable)) {
+ if (hasArchive.Any(s => String.Compare(s.Key.Name, confTable.Name, StringComparison.OrdinalIgnoreCase) == 0)) {
//so we don't grab tblOrderArchive, insert tlbOrder: tblOrderArchive, and then go back and insert tblOrder: null.
continue;
}

0 comments on commit b8bf29d

Please sign in to comment.
Something went wrong with that request. Please try again.