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

SQL-2 query returns more than the requested column

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.5
    • 2.2.10, 2.3
    • query
    • None

    Description

      If I do :

      SELECT alias.[jcr:title] FROM [jnt:mainContent] as alias

      and then iterate through the returned columns of the rows, I get the same result as for :

      SELECT * FROM [jnt:mainContent]

      which is ALL the properties defined for jnt:mainContent.

      Only if I use

      SELECT alias.[jcr:title] as title FROM [jnt:mainContent] as alias

      the result is limited to the title column.

      Attachments

        1. QueryEngine.patch
          0.9 kB
          Benjamin Papez

        Activity

          People

            stillalex Alex Deparvu
            bpapez Benjamin Papez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: