On Tue, Aug 2, 2011 at 9:46 PM, Magnus <[email protected]> wrote: > Do I need to use the the 'action=commit | rollback'? Or are those > actions implicit when a basic cftransaction-/cftransaction pair are > used. >
They're implicit, meaning if you have something in a cftransaction block and no error occurs things will be committed, and if an error occurs things will roll back. The ability to explicitly commit and rollback is important of course depending on what you need to do, but it's not mandatory to use them. > > Will I need to use a cftry/cfcatch block along with cftransaction to > make is possible to provide a message back to the user if a > transaction is rolled back? > Basically yes, and this is what I was getting at earlier. If you want more fine-grained control you'd use try/catch and explicit cftransaction actions. -- Matthew Woodward [email protected] http://blog.mattwoodward.com identi.ca / Twitter: @mpwoodward Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments. http://www.gnu.org/philosophy/no-word-attachments.html -- official tag/function reference: http://openbd.org/manual/ mailing list - http://groups.google.com/group/openbd?hl=en
