Issues

Select view

Select search mode

 
34 of 34

CFQueryParam Somehow Able to Circumvent SQL Query Error With Large Number

Description

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:

 

 

Checked first on 5.3.8.201 which we use and 5.3.9.141 which I dev on locally

Environment

Windows / Default Lucee installation

Details

Assignee

Reporter

Priority

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

Affects versions

Created 9 August 2022 at 11:14
Updated 5 February 2025 at 12:45

Activity

Show:

Zac Spitzer14 June 2023 at 16:25

Pothys - MitrahSoft10 August 2022 at 07:17
Edited

I checked this ticket and confirmed the issue happened on the lucee latest version 5.3.10.51-SNAPSHOT. Yes, when using a large number value in a query with queryparam didn’t throw an error and without using queryparam lucee throws an error like The number '99999999999999980000000000000000000000000' is out of the range for numeric representation (maximum precision 38).

But In Lucee 6.0 when using a large number value in query with/without queryparam didn't throw an error.
(please see the two tests failed in 6.0 )

 

I added a testcase to this ticket
Pull Request:

Zac Spitzer9 August 2022 at 11:21

please always post to the mailing first, please don’t just go and create tickets

Flag notifications