EmptyTable

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Dokkie
Posts: 43
Joined: Wed 08 Oct 2008 21:58

EmptyTable

Post by Dokkie » Mon 01 Dec 2008 04:20

I'm trying to empty a dataset which is a detail of a master table when the user selects a certain value in the master table this should delete all the records in the linked detail table.
To do this I've tried calling detailtable.EmptyTable but I get an error stating that I cannot do this with a read-only transaction active.
The table has its read and update transaction properties set to seperate read and write transactions. The write update transaction has not been set to readonly. I can insert and edit detail records without problem.
What have I misunderstood?
Peter

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 01 Dec 2008 08:56

We have fixed the bug with transaction used by the EmptyTable and DeleteTable methods. The fix will be included in the next build of IBDAC.

Post Reply