[Mono-bugs] [Bug 588206] New: DataTable STRING CONCATENATION (+) not implemented/throws exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Mar 13 23:31:05 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=588206

http://bugzilla.novell.com/show_bug.cgi?id=588206#c0


           Summary: DataTable STRING CONCATENATION (+) not
                    implemented/throws exception
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: All
        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: ---


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)

STRING CONCATENATION (+), 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 haven't tested 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 STRING CONCATENATION (+) in DataTable.Select(filter).
2. Please see the attached code snippet
Actual Results:  
An exception is thrown: "Expression '(strWord+' '+strWord) NOT LIKE '*Bug*'' is
invalid.".
Typically, the MS platform would be more specific, and this is only an example,
but one would expect an error "String concatenation (the + symbol) in your
expression is not yet support on Mono"

Expected Results:  
It should have concatenated the strings (i.e. the text data from the column and
the string given, in this example 'BugFree BugFree').

-- 
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