Re: Safely selecting last inserted ID

2006-12-05 Thread Per Djurner
Thanks, I completely missed the "last_inserted_id" part of that blog post :O I ended up using LAST_INSERTED_ID() for MySQL and SCOPE_IDENTITY() for SQL Server. / Per On 12/4/06, Matt Robertson <[EMAIL PROTECTED]> wrote: > > On 12/4/06, Per Djurner <[EMAIL PROTECTED]> w

Safely selecting last inserted ID

2006-12-04 Thread Per Djurner
I'm trying to find a good solution that works for me when it comes to the classic problem of selecting the last inserted ID in a database table and making sure it's thread safe. I came across this article that basically says that CF can handle this all on it's own (no need for cftransaction or usin

Re: How to tell what template called a function?

2006-08-29 Thread Per Djurner
Michael, is the code that Ben posted the undocumented factory call you are referring to? Ie, this code: That code will only work when debugging is enabled unfortunately. / Per On 8/30/06, Michael Dinowitz <[EMAIL PROTECTED]> wrote: > I was asked that question a few weeks back by a friend and

Re: How to tell what template called a function?

2006-08-29 Thread Per Djurner
gt; Ben Nadel > www.bennadel.com > Certified Advanced ColdFusion Developer > > Need Help? > www.bennadel.com/ask-ben/ > > > -Original Message- > From: Per Djurner [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 29, 2006 5:12 PM > To: CF-Talk > Subject: How to t

How to tell what template called a function?

2006-08-29 Thread Per Djurner
Does anyone know if there is a way I can tell what template (and what line) called a specific function? Something along the lines of what you get in cfcatch.tagContext but without having to throw an error to get it. Maybe there is some magic "under the hood" Java that can be used to get the info?