mail-archives/mono-bugs/2004-June/018127.html

124 строки
4.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 60828][Nor] New - Odbc: IndexOutOfRangeException when using ExecuteScalar()
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="018126.html">
<LINK REL="Next" HREF="018128.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 60828][Nor] New - Odbc: IndexOutOfRangeException when using ExecuteScalar()
</H1>
<B>bugzilla-daemon@bugzilla.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com"
TITLE="[Mono-bugs] [Bug 60828][Nor] New - Odbc: IndexOutOfRangeException when using ExecuteScalar()">bugzilla-daemon@bugzilla.ximian.com
</A><BR>
<I>Mon, 28 Jun 2004 10:53:23 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="018126.html">[Mono-bugs] [Bug 60827][Nor] New - Problem connecting to Sybase 12.5 with SybaseClient
</A></li>
<LI> Next message: <A HREF="018128.html">[Mono-bugs] [Bug 59901][Cri] Changed - JIT on PPC crashes when using NUnit.
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#18127">[ date ]</a>
<a href="thread.html#18127">[ thread ]</a>
<a href="subject.html#18127">[ subject ]</a>
<a href="author.html#18127">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 <A HREF="mailto:sebastien.robitaille@croesus.com.">sebastien.robitaille@croesus.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=60828">http://bugzilla.ximian.com/show_bug.cgi?id=60828</A>
--- shadow/60828 2004-06-28 10:53:23.000000000 -0400
+++ shadow/60828.tmp.15641 2004-06-28 10:53:23.000000000 -0400
@@ -0,0 +1,60 @@
+Bug#: 60828
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Data
+AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+ReportedBy: <A HREF="mailto:sebastien.robitaille@croesus.com">sebastien.robitaille@croesus.com</A>
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Odbc: IndexOutOfRangeException when using ExecuteScalar()
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+An exception is thrown when using OdbcCommand.ExecuteScalar()
+
+System.IndexOutOfRangeException: Array index is out of range.
+in &lt;0x00098&gt; System.Data.Odbc.OdbcDataReader:GetValue (int)
+in &lt;0x00054&gt; (wrapper remoting-invoke-with-check)
+System.Data.Odbc.OdbcDataReader:GetValue (int)
+in &lt;0x00012&gt; System.Data.Odbc.OdbcDataReader:get_Item (int)
+in &lt;0x00054&gt; (wrapper remoting-invoke-with-check)
+System.Data.Odbc.OdbcDataReader:get_Item (int)
+in &lt;0x00040&gt; System.Data.Odbc.OdbcCommand:ExecuteScalar ()
+...
+
+
+Steps to reproduce the problem:
+1. Execute the following code:
+
+dbConnection.Open();
+IDbCommand dbCommand = dbConnection.CreateCommand();
+dbCommand.CommandText = &quot;SELECT count(*) FROM &lt;TABLENAME&gt;&quot;;
+object o = dbCommand.ExecuteScalar();
+
+
+Actual Results:
+Exception thrown.
+
+Expected Results:
+The current record count in &lt;TABLENAME&gt; shoud be returned by ExecuteScalar
+()
+
+How often does this happen?
+Always.
+
+Additional Information:
+
+Linux Redhat 9
+unixODBC
+mono RC1
+freeTDS
+Sybase 12.5
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="018126.html">[Mono-bugs] [Bug 60827][Nor] New - Problem connecting to Sybase 12.5 with SybaseClient
</A></li>
<LI> Next message: <A HREF="018128.html">[Mono-bugs] [Bug 59901][Cri] Changed - JIT on PPC crashes when using NUnit.
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#18127">[ date ]</a>
<a href="thread.html#18127">[ thread ]</a>
<a href="subject.html#18127">[ subject ]</a>
<a href="author.html#18127">[ author ]</a>
</LI>
</UL>
</body></html>