From 22529005d72d96664911d214e50cd9e7e1d56bd2 Mon Sep 17 00:00:00 2001 From: Dominic Watson Date: Fri, 25 Oct 2024 14:20:00 +0100 Subject: [PATCH] PRESIDECMS-2962 ensure query against bigint field uses bigint data type Otherwise you miss getting any versions that are above the int limit --- system/services/presideObjects/PresideObjectService.cfc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/services/presideObjects/PresideObjectService.cfc b/system/services/presideObjects/PresideObjectService.cfc index 1949763735..b78dea9d3d 100644 --- a/system/services/presideObjects/PresideObjectService.cfc +++ b/system/services/presideObjects/PresideObjectService.cfc @@ -3494,7 +3494,7 @@ component displayName="Preside Object Service" { if ( arguments.specificVersion ) { versionFilter = "#arguments.objectName#._version_number = :#arguments.objectName#._version_number"; - params.append( { name="#arguments.objectName#___version_number", value=arguments.specificVersion, type="cf_sql_int" } ); + params.append( { name="#arguments.objectName#___version_number", value=arguments.specificVersion, type="cf_sql_bigint" } ); if ( !arguments.allowDraftVersions && usesDrafts ) { versionFilter &= " and ( #arguments.objectName#._version_is_draft is null or #arguments.objectName#._version_is_draft = :#arguments.objectName#._version_is_draft )";