[Mono-dev] A bug in the latest SVN System.Data (concurrency exception)?
Robert Jordan
robertj at gmx.net
Wed Oct 18 10:57:53 EDT 2006
Marek Habersack wrote:
> Hey folks,
>
> I've just noticed that whenever I try to update a dataset using the
> adapter, e.g.:
>
> cmdBuilder = CreateCommandBuilder(adapter);
> adapter.Update(ds.Users);
>
> (CreateCommandBuilder is a wrapper function that takes care of
> internals)
>
> I get a:
>
> System.Data.DBConcurrencyException: Concurrency violation: the
> UpdateCommand affected 0 records. at
> System.Data.Common.DbDataAdapter.Update (System.Data.DataRow[]
> dataRows, System.Data.Common.DataTableMapping tableMapping) [0x00429]
> in /usr/src/tmp/mono/mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs:1059
>
> And there is at least one row that needs updating, that's for sure. Can
> anyone confirm that?
It works for me under the 1.1 profile. I get the exception
only when I'm trying to update the tables of an unmodified DataSet,
i.e. dataSet.GetChanges () == null.
Robert
More information about the Mono-devel-list
mailing list