record locking problems again

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jkuiper
Posts: 138
Joined: Fri 04 Aug 2006 14:17

record locking problems again

Post by jkuiper » Thu 11 Dec 2008 17:26

I noticed today that MyDac 570 still has problems with locking. :evil:
I'll send you a email with details and samples

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 12 Dec 2008 09:42

We have answered you by e-mail.

jkuiper
Posts: 138
Joined: Fri 04 Aug 2006 14:17

Post by jkuiper » Fri 12 Dec 2008 10:40

I have answered back by email

jkuiper
Posts: 138
Joined: Fri 04 Aug 2006 14:17

Post by jkuiper » Tue 16 Dec 2008 18:45

Problem solved. Before locking the record, call refreshrecord first.

Thank you Dmitry.

siberya
Posts: 23
Joined: Thu 23 Mar 2006 19:00

Post by siberya » Sun 28 Dec 2008 01:30

is it possible ?

CREATE TABLE `test` (
`ID` int(11) unsigned NOT NULL auto_increment,
`MYTIME` time default NULL,
PRIMARY KEY (`FIS_ID`),
) ENGINE=InnoDB;

INSERT INTO `test` (`ID`, `MYTIME`) VALUES
(1, '02:58:52');

First RefreshRecord no error and Record Lock command

"Record was changed by another user"

This error message only mytime field value is 02:58:52

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 29 Dec 2008 14:34

This problem can appear only if you assign a value of a time field with datetime functions like Time(), but not as a string value.
We have fixed this problem . This fix will be included in the next MyDAC build.

Post Reply