[Mono-dev] Mono.Data.SqliteClient errors

Joe Audette joe_audette at yahoo.com
Mon Jun 26 21:52:49 EDT 2006


Hi All,

I'm getting errors in 2 situtations using Mono.Data.SqliteClient

When I try to insert a byte[] into a LongBlob field using DBtype.Binary I get "Unkown Parameter Type"

When I retrieve a datareader using  a select statement with a union I get this error:

 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 84:         
Line 85:         public object this[string name] {
Line 86:             get { object retVal = ((object[]) rows[current_row])[(int) column_names[name]];
Line 87:                 return retVal == null ? System.DBNull.Value : retVal; }
Line 88:         }


Source File: C:\__joe\mojo21\Mono.Data.SqliteClient\SqliteResultSet.cs    Line: 86 

I can comment out either side of the union and it works but when I have the union I get this error every time.

I should note that I am testing on Windows and using Mono.Data.SqliteClient compiled in VS 2005 and running under 2.0 .NET

I got the Mono.Data.SqliteClient code from  mono svn r61924

Thanks,

Joe

 
 
joe_audette [at] yahoo dotcom 
http://www.joeaudette.com 
http://www.mojoportal.com






More information about the Mono-devel-list mailing list