Answered
insert null in to unique identifier
Hi i am trying to insert a null value in to a sql server
database.
My calling line is
<cfset VARIABLES.QRYTEST = Application.dbbatchUpdate.test(variables.bupd.dsnC, '')>
and my function to unsert the value is
<cffunction name="test" access="public" output="false" returntype="boolean">
<cfargument name="dsn" type="string" required="yes" />
<cfargument name="test" type="guid" required="no" />
<cfset var local = structnew()>
<cfquery name="local.test" datasource="#arguments.dsn#">
update tb_problem
set itemid = <cfqueryparam cfsqltype="cf_sql_idstamp" value="#arguments.test#">
where problemnumber = 'CEN295'
</cfquery>
<cfreturn true >
</cffunction>
i keep getting the error "element test passed to function is not of type guid".
I have also tried changing the argument type to any, and the cf_sql_type to be a char but still no luck .
any ideas on how to solve this.
cheers
stewart
My calling line is
<cfset VARIABLES.QRYTEST = Application.dbbatchUpdate.test(variables.bupd.dsnC, '')>
and my function to unsert the value is
<cffunction name="test" access="public" output="false" returntype="boolean">
<cfargument name="dsn" type="string" required="yes" />
<cfargument name="test" type="guid" required="no" />
<cfset var local = structnew()>
<cfquery name="local.test" datasource="#arguments.dsn#">
update tb_problem
set itemid = <cfqueryparam cfsqltype="cf_sql_idstamp" value="#arguments.test#">
where problemnumber = 'CEN295'
</cfquery>
<cfreturn true >
</cffunction>
i keep getting the error "element test passed to function is not of type guid".
I have also tried changing the argument type to any, and the cf_sql_type to be a char but still no luck .
any ideas on how to solve this.
cheers
stewart
