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

SQL Storage: <> and NOT IN for multivalued properties

    XMLWordPrintable

    Details

      Description

      For multivalued properties, the semantics are a bit twisted.

      For instance:
      dc:subjects IN ('foo', 'bar)
      is translated to:
      EXISTS (SELECT 1 FROM dc_subjects WHERE dc_subjects.id = hierarchy.id AND dc_subjects.item IN ('foo', 'bar'))

      But the inverse:
      dc:subjects NOT IN ('foo', 'bar)
      is translated to:
      NOT EXISTS (SELECT 1 FROM dc_subjects WHERE dc_subjects.id = hierarchy.id AND dc_subjects.item IN ('foo', 'bar'))

        Attachments

          Activity

            People

            • Assignee:
              fguillaume Florent Guillaume
              Reporter:
              fguillaume Florent Guillaume
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Time Spent - 1 hour Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - 1 hour Remaining Estimate - 1 hour
                1h