Subject | Re: [ib-support] Master-Detail constraint checking |
---|---|
Author | Martijn Tonies |
Post date | 2003-04-28T11:56:42Z |
Perhaps this would be a nice candidate for DEFERRED constraint
checking :)
Martijn Tonies
Database Workbench - the developer tool for InterBase & Firebird
Upscene Productions
http://www.upscene.com
See you at the First European Firebird Conference in May in Fulda, Germany
http://www.firebird-conference.com
checking :)
> >Personally I have in the past used temporary posting tables with an SP tothe
> >post into the main table, the SP can then validate prior to posting in
> >actual nominal ledger. There is only 1 temporary table, it can hold manychecks
> >TX's and you tell it which TX you want to post into the ledger. It
> >and posts or barf's.marked
>
> Or you could have an additional field which indicates the state of the
> journal, either "working" or "complete". A trigger can watch for the
> transition of this state from "working" to "complete" and when it is
> complete, that is when the integrity checks are applied. Only at thatpoint
> do the debits and credits have to balance.With regards,
>
> You could also have a view of those tables which only returns "complete"
> journals so that parts of your application do not have to see the working
> journals at all.
Martijn Tonies
Database Workbench - the developer tool for InterBase & Firebird
Upscene Productions
http://www.upscene.com
See you at the First European Firebird Conference in May in Fulda, Germany
http://www.firebird-conference.com