Uploaded image for project: 'Lucee Development'
  1. LDEV-1378

Allow to pass an array as value to cfqueryparam

    Details

    • Type: Enhancement
    • Status: Deployed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.4.20
    • Labels:
    • Sprint:
      August 2017 Sprint

      Description

      cfqueryparam can accept the attribute list=true with separator="," which will take a csv list and use it as needed (e.g. wrap each value with 'single-quotes' etc.)

      It'd be very useful to be able instead to pass an array, so that the following snippets are equivalent:

      currently:

        params={ values="1, 2, 3", list="true", separator="," }
      

      proposed:

        params={ values=[1, 2, 3] }
      

        Attachments

          Activity

            People

            • Assignee:
              21solutions Igal Sapir
              Reporter:
              21solutions Igal Sapir
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: