Problem with Mastersource, what I'm doing wrong?

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
gilbert3
Posts: 3
Joined: Wed 06 Sep 2006 08:36

Problem with Mastersource, what I'm doing wrong?

Post by gilbert3 » Mon 12 Feb 2007 11:17

Please let me know what I'm doing wrong:

0. MyDac 4.40.022 std, delphi 7.
1. I've got two tables named: open_year_quatity and current_quantity
2. Tables are the same and contains all fields which are in other. They contains all data the same except one difference - field Quantity - it is obvious.
3. open_year_quantity in Mytable has mastersource property set to Dataset which contains table current_quantity.
4. Fields are indeks(string), price(real8:2), stock(string) and quantity(real8:3) - they are linked with masterfields to the detailfields.

tell me what I'm doing wrong that dbgrid with open_year_quantity table is not displaying everytime records which are selected in dbgrid with current_quantity. Sometimes they are display, sometimes not. Don't know why.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 13 Feb 2007 09:31

Probably the reason of this problem is in usage of the float fields for master/detail relationship. The problem happens because of float values inaccuracy. If you are sure that the problem is not in float fields, send me at evgeniyd*crlab*com a complete small sample to reproduce it including script to create and fill table. Also supply us with exact version of MySQL server and MySQL client. You can see it in the Info sheet of TMyConnection Editor.

Post Reply