The yesNoFormat() is superfluous:

<cfqueryparam ... null="#len(trim( arguments.to.<xsl:value-of select="@alias" />) ) LTE 0#" />


That's all that's needed.


J


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

Jared C. Rypka-Hauer

Continuum Media Group LLC

http://www.web-relevant.com

Member, Team Macromedia - ColdFusion


"That which does not kill me makes me stranger." - Yonah Schmeidler

On Nov 6, 2006, at 2:11 PM, Qasim Rasheed wrote:

Folks,

I was looking into reactor generated code (while trying to figure out another problem) and saw these statements in the DAO object(s)

<cfqueryparam cfsqltype="cf_sql_numeric" maxlength="22"  value="#arguments.to.QUESTION_ID#" null="#Iif(NOT Len( arguments.to.QUESTION_ID), DE(true), DE(false))#" />

AFAIK, IIF is considered evil and should be avoided. Would it make sence if we can modify the dao.project.xsl to replace this

null="#Iif(NOT Len( arguments.to.<xsl:value-of select="@alias" />), DE(true), DE(false))#"

with this

null="#YesNoFormat( NOT len( trim( arguments.to.<xsl:value-of select="@alias" />) ) GT 0 )#"

Thanks,

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to