Details
Assignee
Michael OffnerMichael OffnerReporter
Matthias DavisMatthias DavisPriority
MinorNew Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Matthias Davis
Matthias DavisPriority
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
Created 9 August 2022 at 11:14
Updated 5 February 2025 at 12:45
Using a large number in a parameter in a database query which should cause a database error is not causing an error.
In the example below the 2nd and 3rd queries fail as expected in CF (and when ran directly in a database client) but only the 2nd one fails in Lucee and the parameterized one seems to somehow work:
<cfset datasourceName = 'DATA SOURCE'> <cfset numero = 1000000000000000000000000000000000000000> <cftry> <cfquery name="one" datasource="#datasourceName#"> SELECT '#numero#' </cfquery> <cfdump var="#one.recordCount# record"> <cfcatch> <cfdump var="#cfcatch.message# 1"> </cfcatch> </cftry> <br /> <cftry> <cfquery name="two" datasource="#datasourceName#"> SELECT #numero# </cfquery> <cfdump var="#two.recordCount# record"> <cfcatch> <cfdump var="#cfcatch.message# 2"> </cfcatch> </cftry> <br /> <cftry> <cfquery name="three" datasource="#datasourceName#"> SELECT <cfqueryparam value="#numero#" cfsqltype="cf_sql_numeric"> </cfquery> <cfdump var="#three.recordCount# record"> <cfcatch> <cfdump var="#cfcatch.message# 3"> </cfcatch> </cftry>
Checked first on 5.3.8.201 which we use and 5.3.9.141 which I dev on locally