I have a masterTable and a detail table on postgresql, i need to inset mastertable line and the the details lines.
How can i do this two tables if on fail rollback ? cached updates is for own table how can i do both be on same commit ?
This to avoid convert tables to sql text because then work ... any change to be with zquery components?
Transactions
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Re: Transactions
Hi Sergio,
Use ChachedUpdates for the TZDataSet descendants. TZConnection.AutoCommit schould be False.
Than use the TZDataSet.Options := TZDataSet.Options + [doUpdateMasterFirst].
Use ChachedUpdates for the TZDataSet descendants. TZConnection.AutoCommit schould be False.
Than use the TZDataSet.Options := TZDataSet.Options + [doUpdateMasterFirst].
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/