Ask a Question related to Coldfusion Database Access, Design and Development.
-
Matt W. #1
cfqueryparam ignores null="yes" when list="yes"
I get an unexpected result when using cfqueryparam with list="yes" and
null="yes" using CF 7.0.1 and MSSQL 2000.
When i run this code:
<cfset arguments.userIds = ""/>
<cfquery datasource="dsn">
select id
from users
where id in (<cfqueryparam value="#arguments.userIds#"
cfsqltype="cf_sql_integer" list="true" null="#not
listLen(arguments.userIds)#"/>)
</cfquery>
It throws an error:
Error Executing Database Query.
Line 3: Incorrect syntax near ')'.
SQL: select id from users where id in ()
If I remove list="yes" from the cfqueryparam tag, it works fine and sends
"select id from users where id in (null)" to SQL server (which is a valid
statement) and the page loads successfully. It appears that with list="yes"
and null="yes", it does not send the "null" as I would expect like it does when
list="no". I cannot find any documentation on using null="yes" with
list="yes", so I can't tell if this is intended functionality or a bug. I am
getting a SQL error, not a CF error, so CF sees it as syntactically correct.
Thanks.
Matt W. Guest
-
Proj cannot run on LCDS 2.6 ES due to "Unable to resolveresource bundle "datamanagement" for locale "en_US"
hi, all, We have developped an application on Flex Build 3 (run successfully), but failed when we try to deploy it on Tomcat with LCDS 2.5 ES... -
CFINPUT type="radio" w/ "value" requires "label"
On a Flash form, when you specify type='radio' and value='whatever', the value of the 'value' attribute will be displayed as a label if no 'label'... -
#26162 [Opn->Bgs]: $a="0abcdefg";if ($a==0) echo "OK"; result is "OK" ?!
ID: 26162 Updated by: didou@php.net Reported By: zhuminglun at yahoo dot com dot cn -Status: Open +Status: ... -
dr("field").toString returns "400.0000" instead of "400"
I have just installed VS.NET 2003 on my computer. I have a project that I have been developing on VS.NET 2002. I haven't upgraded this project to... -
"Start" "Program" "Menu" list is empty
For what ever reason my list of installed programs in my "Start" "Programs" menu is empty. Anyone know how to restore the list. Thanks for your... -
MikerRoo #2
Re: cfqueryparam ignores null="yes" when list="yes"
Well it can't be a list if it's null, now can it? :D
Seriously, it looks like a bug to me.
You should file a bug report at: [url]http://www.macromedia.com/support/email/wishform/[/url] .
MikerRoo Guest



Reply With Quote

