tracker issue : CF-4204153

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

ColdFusion has an undocument _insert() function

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/LowImpact

Reporter/Name(from Bugbase): Dan S. / ()

Created: 04/05/2019

Components: Functions

Versions: 2016,11.0,2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: All builds of CF11+ / NA

Priority/Frequency: Normal / Some users will encounter

Locale/System: ALL / Platforms All

Vote Count: 2

Problem Description:

Adobe ColdFusion 11, 2016 and 2018 all have an undocumented function named _insert() that appears to be just like the documented insert() function.

Steps to Reproduce:

This causes issues with code that named private functions _insert() to work around the fact that insert() is a reserved name.

Actual Result:
Parameter validation error for the _INSERT function.
The function takes 3 parameters.

Expected Result:
The function should not exist.

Any Workarounds:
Refactor code to not use the name "_insert" for a private function.



Hi Dan, Thanks for reporting. We will identifying list of similar function so that it does not impact user defined function signature written by user. Large scope of bug will be tracked as part of CF-4204323.
Comment by Mukesh K.
30736 | May 15, 2019 10:40:48 AM GMT
Hi Mukesh, "Reason Code: LowImpact" should probably be "Reason Code: Duplicate" (of CF-4204323)? Thanks!, -Aaron
Comment by Aaron N.
30792 | May 21, 2019 09:39:37 AM GMT