Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-10290

Empty HQL query throws exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.0, 5.4.5
    • 5.4.4
    • Old Core
    • None
    • Unit
    • Trivial
    • N/A
    • N/A

    Description

      On the Query Module documentation page the first example you see is:

      Query Description XWQL HQL
      Query listing all documents <empty query> <empty query>

      It doesn't work! Try this:

      {{velocity}}
      $services.query.hql('').setLimit(10).execute()
      {{/velocity}}
      

      You'll get:

      Caused by: org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree []
      

      The XWQL empty query works.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: