BLS
HFSQL /CS Exception/Tansaction/Referential integrity April 29, 2009 01:41PM |
HTransactionStart() WHEN EXCEPTION IN HAdd(Orders) // add the order HTransactionEnd() // validate the addition DO HTransactionCancel() // delete the order lines END
Fabrice Harari
Re: HFSQL /CS Exception/Tansaction/Referential integrity April 29, 2009 03:33PM |
BLS
Re: HFSQL /CS Exception/Tansaction/Referential integrity April 29, 2009 06:27PM |
Quote
Fabrice Harari
Hi Bjoërn...
a hadd can of course fail. You can have duplicate errors, integrity error, file access error, index error, and so on...
And for most of those, you do NOT need to use an exception to track it (result false, herror, herrorinfo, etc)
Best regards
Fabrice Harari
WinDev, WebDev, WinDev Mobile Consulting & Video Courses
HTransactionStart() WHEN EXCEPTION IN HAdd(Orders) // add the order HTransactionEnd() // validate the addition DO HTransactionCancel() // delete the order lines END
BLS france
Re: HFSQL /CS Exception/Tansaction/Referential integrity April 29, 2009 06:47PM |
Jimbo
Re: HFSQL /CS Exception/Tansaction/Referential integrity April 29, 2009 07:59PM |
Moderator |
BLS
Re: HFSQL /CS Exception/Tansaction/Referential integrity April 29, 2009 11:11PM |
BLS
Re: HFSQL /CS Exception/Tansaction/Referential integrity April 29, 2009 11:31PM |
Jeff Graham
Re: HFSQL /CS Exception/Tansaction/Referential integrity May 01, 2009 02:49PM |
BLS
Re: HFSQL /CS Exception/Tansaction/Referential integrity May 05, 2009 11:58PM |