[Mono-bugs] [Bug 73159][Nor] New - ODBC type SQL_WVARCHAR is not supported

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 1 Mar 2005 13:35:32 -0500 (EST)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by timo-mono@pokorra.de.


--- shadow/73159	2005-03-01 13:35:32.000000000 -0500
+++ shadow/73159.tmp.14860	2005-03-01 13:35:32.000000000 -0500
@@ -0,0 +1,37 @@
+Bug#: 73159
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: timo-mono@pokorra.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: ODBC type SQL_WVARCHAR is not supported
+When reading from an ODBC Source that has a column with type SQL_WVARCHAR,
+you will receive an System.ArgumentException, with the Message "Invalid
+Native Type".
+Steps to reproduce the problem:
+1. Access a DataReader, that has a column with the ODBC type SQL_WVARCHAR
+(integer value: -9) in it. (it happens for example when using the
+PostgreSQL ODBC driver on Windows, when accessing a column that was created
+with e.g. VARCHAR(20), in a latin-1 encoding; strangely enough, it works
+fine with the unixODBC driver for PostgreSQL on Linux).
+2. Try to access the value from the IDataReader reader:
+string myString = (string) reader["myWVarcharColumn"];
+Actual Results:
+The ODBC type is not recognized. The Exception System.ArgumentException is
+Expected Results:
+The value should be returned as a string.