Alright, I need some help. I have a function that is crashing CF6.1
and I have absolutely no idea why. I have tested all the functions
that are referred to within this code separately and they worked fine.
This is a simple function logging a user's entry into the system. You
will notice a query function I abstracted the cfquery tag so that I
could use it in cfscript.

Maybe some fresh eyes will see something I obviously have not.

Ian

- ----------------------------- -

        <cffunction name="logLogin" displayname="LogLogin" output="no"
access="public" returntype="struct" hint="">
                <cfargument name="approot" type="string" required="true" hint="the
Application Root Directory">
                <cfargument name="userlogin" type="string" required="true"
hint="LOGIN of user">
                <cfset var o = structnew() />
                <cfset var t = structnew() />
                <cfscript>
                        // init
                        t.id = idgen( approot="#arguments.approot#" );
                        // build query
                        t.sql = "
                                insert into pmsuserlog (logid, userlogin, logstatus)
                                values (#t.id#, '#arguments.userlogin#', 'IN')
                        ";
                        // get output
                        t.output = query(t.sql);
                        o.result = t.output.result;
                        o.message = t.output.message;
                        o.pass = t.output.pass;
                </cfscript>
                <cfreturn o >
        </cffunction>



-- 

----------------------
Ian Sheridan
http://www.savagevines.com
----------------------
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to