[Mono-bugs] [Bug 588199] New: DataTable CONVERT function not implemented/throws exception
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Mar 13 18:48:50 EST 2010
http://bugzilla.novell.com/show_bug.cgi?id=588199
http://bugzilla.novell.com/show_bug.cgi?id=588199#c0
Summary: DataTable CONVERT function not implemented/throws
exception
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Data
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: janvanderwatt at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=348340)
--> (http://bugzilla.novell.com/attachment.cgi?id=348340)
Code snippet to reproduce bug/test that problem is resolved
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
The CONVERT function, as described at
http://msdn.microsoft.com/en-us/library/system.data.datacolumn.expression(VS.85).aspx
is not implemented on Mono.
To be specific, it isn't implemented when used as part of a filter expression
(it could be implemented for other examples but I am unsure how to test for
that).
There is also a general aspect here being that the error thrown is far too
general - the MS equivalents are at least a bit more specific about what is
wrong with one's expressions.
Reproducible: Always
Steps to Reproduce:
1. Use CONVERT funtion in DataTable.Select(filter).
2. Please see the attached code snippet
Actual Results:
An exception is thrown: "Expression 'CONVERT(iCount, 'System.String') LIKE
'%10%'' is invalid.".
Typically, the MS platform would be more specific, and this is only an example,
but one would expect an error "The CONVERT function in your expression is not
yet support on Mono"
Expected Results:
It would be really really nice if this function is implemented and working in
accordance with the MS definitions.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list