Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30359

Implement the Bracket/Parenthesis predicate for NXQL

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core

      Description

      When building NXQL queries, in particular for security policies, there is no way to specify complex predicate because by default org.nuxeo.ecm.core.query.sql.model.Predicate doesn't wrap lvalue and rvalue.

      For example, instead of (a = 1 or b = 2) and (c = 3 or d = 4) predicate.toString() would create a = 1 or b = 2 and c = 3 or d = 4 which is not correct.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tmartins Thierry Martins
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: