Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3219

regression with self-join queries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None

    Description

      affects version 2.3.7

      running a query that joins on the same node type against 2.3.6 returns 1 result, while running it against 2.3.7 returns the same node 3 times. if i join two different node types, i get only one result row...

      to reproduce: in my repository, i have 2 unstructured nodes with the same jcr:mimeType and one of them having the field zeronumber with value 0.

      QueryManager qm = s.getWorkspace().getQueryManager();
      Query q = qm.createQuery("SELECT data.zeronumber FROM [nt:unstructured] AS data INNER JOIN [nt:unstructured] AS second ON data.[jcr:mimeType] = second.[jcr:mimeType] WHERE data.zeronumber = 0", Query.JCR_JQOM);
      QueryResult r = q.execute();
      RowIterator i = r.getRows();
      while (i.hasNext())

      { Row n = i.nextRow(); System.out.println(n.getPath("data")); }

      jukka suspects this could be introduced by JCR-3198

      Attachments

        1. JCR-3219-test.patch
          3 kB
          Alex Deparvu

        Activity

          People

            Unassigned Unassigned
            dbu David Buchmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: