Author: kostat
Date: 2005-04-27 11:37:30 -0400 (Wed, 27 Apr 2005)
New Revision: 43663
Modified:
branches/Mainsoft.System.Data/mcs/class/System.Data/System.Data/ConstraintCollection.cs
Log:
ConstraintCollection: throw DuplicateException only if names match exactly with
Table's locale
Modified:
branches/Mainsoft.System.Data/mcs/class/System.Data/System.Data/ConstraintCollection.cs
===================================================================
---
branches/Mainsoft.System.Data/mcs/class/System.Data/System.Data/ConstraintCollection.cs
2005-04-27 15:35:23 UTC (rev 43662)
+++
branches/Mainsoft.System.Data/mcs/class/System.Data/System.Data/ConstraintCollection.cs
2005-04-27 15:37:30 UTC (rev 43663)
@@ -107,7 +107,7 @@
private bool _isDuplicateConstraintName(string constraintName,
Constraint excludeFromComparison)
{
foreach (Constraint cst in List) {
- if (String.Compare (constraintName,
cst.ConstraintName, !Table.CaseSensitive) == 0 && cst !=
excludeFromComparison)
+ if (String.Compare (constraintName,
cst.ConstraintName, false, Table.Locale) == 0 && cst != excludeFromComparison)
return true;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches