[Mono-bugs] [Bug 651550] New: Table.Select() filter string escaping is not consistent with ms.net
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Nov 4 19:18:23 EDT 2010
https://bugzilla.novell.com/show_bug.cgi?id=651550
https://bugzilla.novell.com/show_bug.cgi?id=651550#c0
Summary: Table.Select() filter string escaping is not
consistent with ms.net
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: x86
OS/Version: Windows 7
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Data
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: cvolzke at live.com.au
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1036 Safari/532.5
For table.Select,
The following escapes are valid in Mono:
\n
\r
\t
\\
''
The following escapes are valid in ms.net:
''
For example: column='This string has a single quote ('') in it'
Reproducible: Always
Steps to Reproduce:
1. Create a DataTable and DataColumn of type string.
2. Add a row with text table.Rows.Add("string \r\n with a quote and slash ('
and \\) in it");
3. Call table.Select("column='string \r\n with a quote and slash ('' and \\) in
it'");
NOTE: \r\n and \\ are not escaped after the above statements are compiled.
Actual Results:
Select() doesn't return the row.
Expected Results:
The Select() should return the row, even though \r \n and \\ are not escaped.
\r \n are not valid escape sequences in .net, and are treated as literal (as
they are).
--
Configure bugmail: https://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