[Mono-devel-list] Problem with DbDataAdapter...
Konstantin Triger
kostat at mainsoft.com
Tue May 17 05:15:44 EDT 2005
Hello Hubert,
There was a change during this week end: the Mainsoft changes were
merged into the trunk (they were previously available at
Mainsoft.System.Data branch).
From the stack I suppose that PG provider does not fully initialize the
SchemaTable and some columns contain nulls.
Let me know whether the attached patch fixes the problem and I'll check
it in.
Regards,
Konstantin Triger
Hubert FONGARNAND wrote:
>I've updated my mono this morning from SVN...
>and all db applications (PostGreSQL) fails with :
>
>
>System.InvalidCastException: Cannot cast from source type to destination type.
>in <0x00548> System.Data.Common.DbDataAdapter:BuildSchema (IDataReader reader,
>System.Data.DataTable table, SchemaType schemaType, MissingSchemaAction
>missingSchAction, MissingMappingAction missingMapAction,
>System.Data.Common.DataTableMappingCollection dtMapping)
>in <0x00059> System.Data.Common.DbDataAdapter:BuildSchema (IDataReader reader,
>System.Data.DataTable table, SchemaType schemaType)
>in (wrapper remoting-invoke-with-check)
>System.Data.Common.DbDataAdapter:BuildSchema
>(System.Data.IDataReader,System.Data.DataTable,System.Data.SchemaType)
>in <0x00087> System.Data.Common.DbDataAdapter:FillTable (System.Data.DataTable
>dataTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords,
>System.Int32 counter)
>in (wrapper remoting-invoke-with-check)
>System.Data.Common.DbDataAdapter:FillTable
>(System.Data.DataTable,System.Data.IDataReader,int,int,int&)
>in <0x00117> System.Data.Common.DbDataAdapter:Fill (System.Data.DataSet
>dataSet, System.String srcTable, IDataReader dataReader, Int32 startRecord,
>Int32 maxRecords)
>in <0x000ce> System.Data.Common.DbDataAdapter:Fill (System.Data.DataSet
>dataSet, Int32 startRecord, Int32 maxRecords, System.String srcTable,
>IDbCommand command, CommandBehavior behavior)
>in <0x00036> System.Data.Common.DbDataAdapter:Fill (System.Data.DataSet
>dataSet, System.String srcTable)
>in (wrapper remoting-invoke-with-check) System.Data.Common.DbDataAdapter:Fill
>(System.Data.DataSet,string)
>in <0x00121> MoteurCRM.CProfil:RetourneGroupeCommercial (System.String
>cnxstring, System.String televendeur_Id)
>
>
>what has been modified this week end????
>
>thanks
>_______________________________________________
>Ce message et les éventuels documents joints peuvent contenir des informations confidentielles.
>Au cas où il ne vous serait pas destiné, nous vous remercions de bien vouloir le supprimer et en aviser immédiatement l'expéditeur. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou publication, totale ou partielle et quel qu'en soit le moyen est formellement interdite.
>Les communications sur internet n'étant pas sécurisées, l'intégrité de ce message n'est pas assurée et la société émettrice ne peut être tenue pour responsable de son contenu.
>_______________________________________________
>Mono-devel-list mailing list
>Mono-devel-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: DbDataAdapter.patch
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050517/4a8055c7/attachment.pl
More information about the Mono-devel-list
mailing list