all groups > dotnet odbc.net > january 2005 >
You're in the

dotnet odbc.net

group:

Concurrency error with mySQL


Concurrency error with mySQL Tim Marsden
1/27/2005 10:05:04 AM
dotnet odbc.net:
Hi,

I am using ODBCNET to update a mySQL table.
I update the table using a DataAdapter. Setting the Update, Insert and
Delete commands manually.(Optimistic updates)

If I change a row in the datatable, changing the value of a column to the
same value as the original.
The changed row appears in the DataTable.Getchanges result.
When I run the DataAdapter.Update command I get and error,
DBConcurrenyException 0 rows updated.

Why?, the same code works with MS SQL server.

Is there a way of ensuring I only update the changed records, The
datatable.GetChanges returns the row even if changed to the same original
value.

I am a bit confused.

Thanks

Re: Concurrency error with mySQL MA
1/31/2005 2:29:58 PM
Hi!

Could the problem be in the sql-query itself?

How does youre sql script looks like?

/Marre
[quoted text, click to view]

AddThis Social Bookmark Button