I have attached some code that fails, it does a consult to a MySQL using
DataSets and adds a new Row to that DataSet. It fails when it tries to
update the Data Base:

$ mcs -r:System.Data -r:ByteFX.Data mysql-dataset-bug.cs
Compilation succeeded

$ mono mysql-dataset-bug.exe
 
Unhandled Exception: ByteFX.Data.MySQLClient.MySQLException: A system
exception has occurred.
in <0x0012b> 00 ByteFX.Data.MySQLClient.MySQLParameterCollection:IndexOf
(string)
in <0x00058> 08 ByteFX.Data.MySQLClient.MySQLParameterCollection:IndexOf
(string)
in <0x0001f> 00
ByteFX.Data.MySQLClient.MySQLParameterCollection:get_Item (string)
in <0x00058> 08
ByteFX.Data.MySQLClient.MySQLParameterCollection:get_Item (string)
in <0x002aa> 00 ByteFX.Data.MySQLClient.MySQLCommand:ConvertSQLToBytes
(string)
in <0x00058> 08 ByteFX.Data.MySQLClient.MySQLCommand:ConvertSQLToBytes
(string)
in <0x0008c> 00 ByteFX.Data.MySQLClient.MySQLCommand:ExecuteNonQuery ()
in <0x004bd> 00 System.Data.Common.DbDataAdapter:Update
(System.Data.DataRow[],System.Data.Common.DataTableMapping)
in <0x00076> 00 System.Data.Common.DbDataAdapter:Update
(System.Data.DataTable,System.Data.Common.DataTableMapping)
in <0x0006b> 08 System.Data.Common.DbDataAdapter:Update
(System.Data.DataTable,System.Data.Common.DataTableMapping)
in <0x000d9> 00 System.Data.Common.DbDataAdapter:Update
(System.Data.DataSet,string)
in <0x0006b> 08 System.Data.Common.DbDataAdapter:Update
(System.Data.DataSet,string)
in <0x00183> 00 .Test:Main (string[])


I'm doing something wrong or it is a bug? I've been searching throw the
code of mcs but I'm lost :S I don't know where could be the error. Any
ideas? Should I report it to bugzilla ?

Thanks!

-- 

[aka Marble]
 Registered LiNUX user #140941  <>  http://counter.li.org/
 Socio #3274 de HispaLinux  <>  http://www.hispalinux.es
 Miembro de GPL URV  <>  http://www.gplurv.org
 GnuPG key: 0x0ED2CF9D  <>  pgp.escomposlinux.org

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmadadigitalmente

Reply via email to