Details
Assignee
Michael OffnerMichael OffnerReporter
Simon BinghamSimon BinghamPriority
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
Affects versions
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Simon Bingham
Simon BinghamPriority
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 1 February 2018 at 16:20
Updated 31 July 2023 at 21:01
This seems to be a bug and is certainly an inconsistency against ACF.
Given the following table:
CREATE TABLE `pages` (
`page_id` int(11) NOT NULL AUTO_INCREMENT,
`page_title` varchar(150) DEFAULT NULL,
PRIMARY KEY (`page_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `pages` (`page_id`, `page_title`)
VALUES
(1,'Page 1'),
(2,'Page 2'),
(3,'Page 3'),
(4,'Page 4'),
(5,'Page 5'),
(6,'Page 6'),
(7,'Page 7'),
(8,'Page 8'),
(9,'Page 9'),
(10,'Page 10');
The following query returns no results because the value attribute of cfqueryparam is blank.
<cfquery name="test" datasource="db">
SELECT *
FROM pages
WHERE page_id NOT IN (<cfqueryparam cfsqltype="CF_SQL_INTEGER" value="" list="true">)
LIMIT 100
</cfquery>
<cfdump var="#test#">
I would expected all records to be returned.
The debug output shows the query as:
SELECT *
FROM pages
WHERE page_id NOT IN ([CF_SQL_INTEGER])
LIMIT 100