OpenSource » Database Migrator » Legacy Migrator
Clone URL:  

Migrator Modified the row selector.

Changeset ac7862d335c5

Parent a8d9a7cac75b

by jasoncline

Changes to one file · Browse files at ac7862d335c5 Showing diff from parent a8d9a7cac75b Diff from another changeset...

 
244
245
246
247
 
248
249
250
251
252
253
254
 
255
256
257
258
 
 
 
259
260
261
 
244
245
246
 
247
248
249
250
251
252
253
 
254
255
 
 
 
256
257
258
259
260
261
@@ -244,18 +244,18 @@
  private bool DoConvertColumn<T, U>(string table, string column, string tempColumnName, TransformationProvider.ConvertColumnDelegate<T, U> convertFunc)   {   Hashtable data = new Hashtable(); - using (IDataReader reader = this.ExecuteQuery(String.Format("SELECT {0} as vals FROM {1} a", column, table))) + using (IDataReader reader = this.ExecuteQuery(String.Format("SELECT * FROM {0}", table)))   {   // Read in and convert all values   if (reader != null)   {   while (reader.Read())   { - if (!reader.IsDBNull(0)) + if (!(reader[column] is DBNull))   { - U value = convertFunc.Invoke((T)reader.GetValue(0), reader); - if (!data.Contains(reader.GetValue(0))) - data.Add(reader.GetValue(0), value); + U value = convertFunc.Invoke((T)reader[column], reader); + if (!data.Contains(reader[column])) + data.Add(reader[column], value);   }   }   }