optmistic lock

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
eug
Posts: 4
Joined: Fri 10 Jul 2009 16:48

optmistic lock

Post by eug » Fri 10 Jul 2009 17:15

Dear team devart, i have a problem:

Table ART:
Type InnoDB
CheckRowversion=True
StrictUpdate = true
Cacheupdate =true

Pc A
Record X -> edit
Pc B
Record X -> edit
Record X -> modified
Record X -> post
Record X -> applyudates;

Pc A
Record X -> post
Error "Update failed found 0 Records"

How can I fix this error?
Thanks in advance
Sorry my bad English.

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Wed 15 Jul 2009 10:13

You can use pessimistic lock in this case. For more information please refer to the reference of the TMyQuery.LockMode property in the MyDAC help.

Post Reply