Status/Resolution/Reason: Closed/Withdrawn/ThirdParty
Reporter/Name(from Bugbase): Nathan Dintenfass / Nathan Dintenfass (nathandintenfas s)
Created: 12/13/2013
Components: Database
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final /
Priority/Frequency: Normal / Some users will encounter
Locale/System: English / Platforms All
Vote Count: 0
Problem Description:
When passing NULL="TRUE" in CFQUERYPARAM using an Apache Derby datasource the query does not run, throwing the exception: "Syntax error: Encountered "?" at line [X], column [Y]."
Steps to Reproduce:
The following is a simple example of the error (the same query approach works in mySQL datasources):
<cfquery name="foo" datasource="cfartgallery">
select * from artists where fax IS <cfqueryparam null="true" cfsqltype="cf_sql_varchar" value="">
</cfquery>
Note that this DOES work as expected:
<cfquery name="foo" datasource="cfartgallery">
select * from artists where fax IS NULL
</cfquery>
Also note, that while this does not throw an exception it does NOT produce the desired results:
<cfquery name="foo" datasource="cfartgallery">
select * from artists where fax IS <cfqueryparam null="true" cfsqltype="cf_sql_varchar" value="">
</cfquery>
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3684235
Deployment Phase: Release Candidate
External Customer Info:
External Company:
External Customer Name: nathandintenfas s
External Customer Email:
External Test Config: Vanilla install of CF10 on OSX 10.8.5 was the initial environment that produced this error. The cfartgallery dsn referenced is the one installed by CF.
Attachments:
Comments: