MyDac 4.x : LOCK IN SHARE MODE issue with Master / Details tables.

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

MyDac 4.x : LOCK IN SHARE MODE issue with Master / Details tables.

Post by swierzbicki » Wed 05 Oct 2005 10:13

Dear Support,

I cannot use the mysql 'LOCK IN SHARE MODE' option in Details table when MasterKey and DetailKey are filed

For example, open the Master / Detail Demo bundled with MyDac.
Change the quDetail Master/Detail keys properties to 'DEPTNO'

Change the quDetail SQL property with (I've removed the param as master and detail keys are filed + added a where condition) :

Code: Select all

SELECT * FROM emp
WHERE ENAME  '' 
LOCK IN SHARE MODE
Compile and run.
When opening Detail table, I got an exception :

exception class : EMyError
exception message : #42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LOCK IN SHARE MODE) WHERE DEPNO = 10' at line 3

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Thu 06 Oct 2005 08:56

Thank you for information.
We reproduced your problem and fixed it. This fix will be included in the next MyDAC build. It will be available in about one week.
Please look forward for announcments at the forum.

Post Reply