https://bugzilla.novell.com/show_bug.cgi?id=364430
Summary: ODBC: Command fails to use a UNICODE string parameter
Product: Mono: Class Libraries
Version: 1.2.6
Platform: i686
OS/Version: Windows XP
Status: NEW
Severity: Major
Priority: P5 - None
Component: Sys.Data
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: Customer
System.Data.Odbc.OdbcCommand fails using a UNICODE string parameter. Example:
1. Create a table (test) with two columns (id integer, text nvarchar)
2. create an OdbcCommand with text: INSERT INTO test ("id","text") VALUES (?,?)
3. Add Parameters "id" with value 1 (DbType.Int32), "text" with value
"aфbиcсdвeуfа" (DbType.String)
4. Execute
Now you should check the values:
1. SELECT LENGTH("text") FROM "test" WHERE "id"=1
-> Returned value is 12 but the string should be longer
2. SELECT "text" FROM "test" WHERE "id"=1
-> Shows "??????" in the console. I understand that the unicode characters are
shown as "?" due to a limitation of the Windows console but where are the
characters "a".."f"?
I use the developer version of Sybase SQL Anywhere 10 + latest fixes.
Regards,
Mark
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs