[Mono-bugs] [Bug 58821][Nor] New - OdbcDataReader::GetName() always returns empty string

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 21 May 2004 17:55:40 -0400 (EDT)


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 sebastien.robitaille@croesus.com.

http://bugzilla.ximian.com/show_bug.cgi?id=58821

--- shadow/58821	2004-05-21 17:55:40.000000000 -0400
+++ shadow/58821.tmp.5009	2004-05-21 17:55:40.000000000 -0400
@@ -0,0 +1,56 @@
+Bug#: 58821
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: sebastien.robitaille@croesus.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: OdbcDataReader::GetName() always returns empty string
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+Calling OdbcDataReader::GetName always returns ""
+
+Steps to reproduce the problem:
+1. Use the following code:
+
+OdbcCommand command = new OdbcCommand("SELECT * FROM <TABLENAME>, 
+m_DatabaseConnection);
+OdbcDataReader dataReader = command.ExecuteReader();
+
+for (int nIndex = 0; nIndex < dataReader.FieldCount; nIndex++)
+{
+	Console.WriteLine("Column name: " + dataReader.GetName(nIndex));
+}
+
+
+Actual Results:
+Column name:
+Column name:
+...
+
+Expected Results:
+Column name: NAME
+Column name: ADDRESS
+...
+
+
+How often does this happen? 
+Always
+
+Additional Information:
+
+freetds-0.62.3
+mono-0.91
+unixODBC-2.2.8