John Beynon wrote:

Ah yes, if I remove the transaction block it works. I need to make sure that in between querying the db for the file details and updating the download count another 'download' doesn't sneak in, hence the use of cftransaction. If I complete the transaction block before serving the file I'll be spanning the <cfif> that checks if a record is valid so my code would end up looking like:

Any ideas?


How about just setting some flag inside the transaction when you know its completed, then just check that out side of your db processing?

Stephen


-- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
     *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
          *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]



Reply via email to