[Mono-bugs] [Bug 320313] Sqlite DataReader's GetString crashes on null value in DB

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 20 15:42:01 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=320313

http://bugzilla.novell.com/show_bug.cgi?id=320313#c1


Gonzalo Paniagua Javier <gonzalo at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |gonzalo at novell.com
         Resolution|                            |FIXED

--- Comment #1 from Gonzalo Paniagua Javier <gonzalo at novell.com> 2010-01-20 20:42:00 UTC ---
Mono.Data.SqliteClient.dll is now obsolete.
When using Mono.Data.Sqlite.dll, GetString (0) yields:
Unhandled Exception: System.InvalidCastException: Cannot cast from source type
to destination type.
  at Mono.Data.Sqlite.SqliteDataReader.VerifyType (Int32 i, DbType typ)
[0x00000] 
  at Mono.Data.Sqlite.SqliteDataReader.GetString (Int32 i) [0x00000] 
  at Test.Main (System.String[] args) [0x00000]

because reader [0] is a DBNull.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list