[Mono-dev] DataTable Select string comparison patch

Jarosław Pawlak jarek.pawlak at gmail.com
Sun Dec 3 15:52:11 EST 2006


Hello.
When comparing string values in Columns in DataTable (in Select
command), Microsoft's .NET Trims value endings, so, "MyName " (space
at the end added  is equal to "MyName" (without space at end), while
MONO doesn't do that.
I attached patches to Comparison.cs
(System.Data/Mono.Data/SqlExpressions), and to DataTableTest, that fix
this problem. There are two tests added, I checked that spaces in
front of actual value have meaning - second test checks that.

Regards
Jarosław Pawlak
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Comparison.patch
Type: text/x-patch
Size: 800 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061203/cfe4eca9/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DataTableTest.patch
Type: text/x-patch
Size: 1155 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061203/cfe4eca9/attachment-0001.bin 


More information about the Mono-devel-list mailing list