Page 1 of 1

MyDAC and TClientDataSet

Posted: Sun 12 Feb 2006 16:19
by trying
Hello,

I am testing MyDAC components.
I have a trouble with Master/Details relationship:
The problem is that Primary key is not propagated automaticly
to details.

When I use ADO + MSSQL the key is propagated to details.

How could I solve it ?

Posted: Sun 12 Feb 2006 19:01
by trying
More information:

I have created the relationship in TMyQuery using MasterSource
and SQL Query with KEY = :KEY

This code is translated since an app that works very well with ADO + MyODBC.

In TClientDataSet I have linked Master with Detail VIA DataSetField

Regards

Posted: Mon 13 Feb 2006 12:30
by Ikar
It looks like quite uncommon type of master/detail relationship (between two connection types). But we nevertheless tested it. All works fine. Check if you set MasterSource property in MyQuery/MyTable and data type of the KEY. Delphi doesn't allow INT64 or UNSIGNED INT data types for automatic Master-Detail relationship. See MyDAC FAQ for more information.

Posted: Mon 13 Feb 2006 14:59
by trying
The relation is OK. I have been tested with ADO and Microolap components and works fine in both. Do you know this problem ?

Posted: Tue 14 Feb 2006 07:23
by Ikar
We couldn't reproduce the problem.
Please send us (mydac*crlab*com) a complete small sample to demonstrate it, including script to create and fill table.

Also supply us following information
- Exact version of Delphi, C++ Builder or Kylix
- Exact version of MyDAC. You can see it in About sheet of TMyConnection Editor
- Exact version of MySQL server and MySQL client. You can see it in Info sheet of TMyConnection Editor

Posted: Fri 17 Feb 2006 09:01
by trying
I sent a mail with project attachment (5 days)
but I have not received any response.

Did you receive the mail ?

Regards

Posted: Fri 17 Feb 2006 15:38
by Ikar
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 month. Please watch for announcements at the forum.