[Mono-bugs] [Bug 74917][Maj] Changed - OdbcParameters not working
in Mono 1.1.7
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue May 17 09:55:04 EDT 2005
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 dfreund at runlevel-5.org.
http://bugzilla.ximian.com/show_bug.cgi?id=74917
--- shadow/74917 2005-05-12 04:43:59.000000000 -0400
+++ shadow/74917.tmp.16664 2005-05-17 09:55:04.000000000 -0400
@@ -2,13 +2,13 @@
Product: Mono: Class Libraries
Version: 1.1
OS: All
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Major
Component: Sys.Data
AssignedTo: mono-bugs at ximian.com
ReportedBy: dfreund at runlevel-5.org
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -140,6 +140,55 @@
in (wrapper remoting-invoke-with-check)
System.Data.Odbc.OdbcCommand:ExecuteReader (System.Data.CommandBehavior)
in <0x0000f> System.Data.Odbc.OdbcCommand:ExecuteReader ()
in (wrapper remoting-invoke-with-check)
System.Data.Odbc.OdbcCommand:ExecuteReader ()
in <0x0016a> MainClass:Main (System.String[] args)
+
+------- Additional Comments From dfreund at runlevel-5.org 2005-05-17 09:55 -------
+I tried to investigate on this a little more. I'm getting now the
+following stack trace on Linux:
+
+Unhandled Exception: System.NullReferenceException: Object reference
+not set to an instance of an object
+in <0x00000> <unknown method>
+in (wrapper managed-to-native) System.Data.Odbc.libodbc:SQLExecute
+(intptr)
+in <0x00052> System.Data.Odbc.OdbcCommand:ExecSQL (System.String sql)
+in (wrapper remoting-invoke-with-check)
+System.Data.Odbc.OdbcCommand:ExecSQL (string)
+in <0x00076> System.Data.Odbc.OdbcCommand:ExecuteNonQuery (Boolean
+freeHandle)
+in (wrapper remoting-invoke-with-check)
+System.Data.Odbc.OdbcCommand:ExecuteNonQuery (bool)
+in <0x00015> System.Data.Odbc.OdbcCommand:ExecuteReader
+(CommandBehavior behavior)
+in (wrapper remoting-invoke-with-check)
+System.Data.Odbc.OdbcCommand:ExecuteReader (System.Data.CommandBehavior)
+in <0x0000f> System.Data.Odbc.OdbcCommand:ExecuteReader ()
+in (wrapper remoting-invoke-with-check)
+System.Data.Odbc.OdbcCommand:ExecuteReader ()
+in <0x0016a> MainClass:Main (System.String[] args)
+
+It hangs in the ExecSQL-Method:
+
+private void ExecSQL(string sql)
+{
+ OdbcReturn ret;
+
+ if ((Parameters.Count>0) && !prepared)
+ Prepare();
+
+ if (prepared)
+ {
+ ret=libodbc.SQLExecute(hstmt);
+ // .. snip ..
+
+The call of libodbc.SQLExecute fails.
+Is somebody already investigating on this? If not, where can I find
+more info about libodbc-call, so that I can do it myself?
+
+Any hints would be really appreciated, because this for me is
+(hopefully) the last hurdle before deploying on Linux/Mono instead of
+using Win/MS.NET
+
+THANX
More information about the mono-bugs
mailing list