Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1856

Expression.expWithParameters does not work when parameters are placed in the inline collection

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1RC1, 4.0.M2, 3.0.3
    • Core Library
    • None

    Description

      Per http://cayenne.apache.org/docs/3.1/cayenne-guide/expressions-bnf.html "IN" expression supports binding to both a list parameter and an explicit list of scalars (each scalar can be a parameter) :

      "in" ( namedParameter | "(" scalarCommaList ")" )

      I.e. both these forms are valid:

      "a in $list"
      "a in ($v1, $v2, $v3, 'bla')"

      The second form doesn't work - parameters are not bound when calling 'Expression.expWithParameters'

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment