Hello,
If 2 users update in the same time the same records,how MyDAC resolve the problem?
Is it possible to lock the record when the first user update it... and the second user must wait the record be free?
Thanks
Multiple users
If the second user had applied Lock with lrImmediately parameter, the other users can't perform any changes with locked record at all. But if they both open the same table and then the first user deletes a record, the second user is not notified of record deletion. To avoid editing deleted record, you should try to lock record before editing and catch error using try...except block.
if i use second transaction, first transaction canceled.
if i use second transaction, first transaction canceled.
i want to record lock and multi transaction.
i want to record lock and multi transaction.
We can't understand your problem exactly. If you want to use more than one transaction using one MyConnection, it's nested transactions. Nested
transactions are not supported by MySQL Server. Quotation from MySQL manual: "Transactions cannot be nested. This is a consequence of the implicit COMMIT performed for any current transaction when you issue a START TRANSACTION statement or one of its synonyms."
Try to use more MyConnection instances. If transaction that locked a record was rolled back, the record automatically gets unlocked
transactions are not supported by MySQL Server. Quotation from MySQL manual: "Transactions cannot be nested. This is a consequence of the implicit COMMIT performed for any current transaction when you issue a START TRANSACTION statement or one of its synonyms."
Try to use more MyConnection instances. If transaction that locked a record was rolled back, the record automatically gets unlocked
one connection one active transaction.
one connection one active transaction.
but i want to one connection multi active transaction.
this problem is belong to mysql.
thanks ikar.
but i want to one connection multi active transaction.
this problem is belong to mysql.
thanks ikar.