[Mono-list] Bug adding a new row with DataSets ?

Sergio Blanco Cuaresma sergio-blanco@iespana.es
25 Aug 2003 20:01:23 +0200


--=-6xQAeEOVE1+NPyPo1hEx
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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
=20
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!

--=20

[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

--=-6xQAeEOVE1+NPyPo1hEx
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
	digitalmente

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQA/Sk7zfGXf5g7Sz50RAoqqAKDRLgUoXseiVXQsWzlh8egd3liamgCfYGSR
HDwpD8dN6gmCH7RFdWwXVaU=
=vNYV
-----END PGP SIGNATURE-----

--=-6xQAeEOVE1+NPyPo1hEx--