tracker issue : CF-4203844

select a category, or use search below
(searches all categories and all time range)
Title:

ListDeleteAt remove last symbol instead of entire delimiter. CF 2018

| View in Tracker

Status/Resolution/Reason: To Fix//BugReVerified

Reporter/Name(from Bugbase): Frunza Vladislav / ()

Created: 12/26/2018

Components: Language, Functions

Versions: 2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: Any /

Priority/Frequency: Normal / All users will encounter

Locale/System: ALL / Win 2012 Server x64

Vote Count: 0

Problem Description:
ListDeleteAt remove last simbol instead of entire delimetr.

Steps to Reproduce:
{code:java}
<cfset query = "SELECT '5' AS lead_item_id, NULL AS vendor_price UNION ">
<cfset query = ListDeleteAt(query, ListLen(query, "UNION"), "UNION")> <!--- removing last union --->
<cfdump var="#query#">
<cfabort>
{code}


Actual Result:
SELECT '5' AS lead_item_id, NULL AS vendor_price UNIO

Expected Result:
SELECT '5' AS lead_item_id, NULL AS vendor_price

Attachments:

Comments: