diff options
author | Veerapuram Varadhan <v.varadhan@gmail.com> | 2010-04-12 01:14:47 +0400 |
---|---|---|
committer | Veerapuram Varadhan <v.varadhan@gmail.com> | 2010-04-12 01:14:47 +0400 |
commit | eaf3574cf5242da35cc47f0d62065d9b9cb4a483 (patch) | |
tree | 6af48d13d700966a49070655663f79366383d273 /mcs | |
parent | 34b8092fd76ef44244e2fa917a4ff3a94398a279 (diff) |
2010-04-11 Veerapuram Varadhan <vvaradhan@novell.com>
** Fixes #591443
* DataColumn.cs (Clone): Use property to clone Expression as it
* builds
compiled expression also, if any.
svn path=/branches/mono-2-6/mcs/; revision=155217
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/System.Data/System.Data/ChangeLog | 6 | ||||
-rw-r--r-- | mcs/class/System.Data/System.Data/DataColumn.cs | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/mcs/class/System.Data/System.Data/ChangeLog b/mcs/class/System.Data/System.Data/ChangeLog index d8135ed3e92..db440eca794 100644 --- a/mcs/class/System.Data/System.Data/ChangeLog +++ b/mcs/class/System.Data/System.Data/ChangeLog @@ -1,3 +1,9 @@ +2010-04-11 Veerapuram Varadhan <vvaradhan@novell.com> + + ** Fixes #591443 + * DataColumn.cs (Clone): Use property to clone Expression as it builds + compiled expression also, if any. + 2010-04-10 Veerapuram Varadhan <vvaradhan@novell.com> ** Fixes #589482 diff --git a/mcs/class/System.Data/System.Data/DataColumn.cs b/mcs/class/System.Data/System.Data/DataColumn.cs index 281642d7142..8fa48ee4e4d 100644 --- a/mcs/class/System.Data/System.Data/DataColumn.cs +++ b/mcs/class/System.Data/System.Data/DataColumn.cs @@ -701,7 +701,8 @@ namespace System.Data { //Copy.Container
copy.DataType = DataType;
copy._defaultValue = _defaultValue;
- copy._expression = _expression;
+ // Use property to clone Expression as it builds compiled expression also, if any.
+ copy.Expression = _expression;
//Copy.ExtendedProperties
copy._maxLength = _maxLength;
copy._nameSpace = _nameSpace;
|