Status: New
Owner: ----
New issue 110 by andrecarlucci: GetColumnByName should not be case sensitive
http://code.google.com/p/migratordotnet/issues/detail?id=110
What steps will reproduce the problem?
1. Create a table with column 'NAME'
2. Call GetColumnByName('Name');
3. It will return null
Since the column name is not case sensitive in all databases,
GetColumnByName has to follow the same behavior.
To fix that, change TransformatinoProvider.cs from:
public virtual Column GetColumnByName(string table, string columnName)
{
return Array.Find(GetColumns(table),
delegate(Column column)
{
return column.Name == columnName;
});
}
to:
public virtual Column GetColumnByName(string table, string columnName)
{
return Array.Find(GetColumns(table),
delegate(Column column)
{
return column.Name.ToLower() == columnName.ToLower();
});
}
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"migratordotnet-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/migratordotnet-devel?hl=en
-~----------~----~----~----~------~----~------~--~---