Master detail Problem

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
saidus
Posts: 78
Joined: Wed 26 Oct 2005 09:54
Location: Algeria

Master detail Problem

Post by saidus » Sat 18 Nov 2006 13:58

He !! ales
I ve a problem, when trying to delete a master record the detail records don't delete all
I have write the following code :
master_dataset (On before delete )
{
detail_dataset->First()
while(!detail_dataset->Eof)
detail_dataset->Delete();
}

I use the C++Builder 5 and MyDAC 440
thank you for ur help

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

Post by Antaeus » Mon 20 Nov 2006 09:02

Thank you for the information. Unfortunately we could not reproduce the problem.
Please send us (evgeniyD*crlab*com) a complete small sample to demonstrate it, including script to create and fill table.

Also supply us the following information
- 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

Post Reply