Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-4576

Include ORDER BY cols in SELECT clause in EJBQLToSQL92Compiler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • JBossAS-4.0.5.GA
    • None
    • None
    • postgresql 8.2.4

      Bug JBAS-206 is still present in the EJBQLToSQL92Compiler.

      For example this dynamic JBoss QL works fine with the default compiler:
      select distinct object(o) from TransactionRO o where o.account.accountId = ?1 and o.date >= ?2 order by o.user.login desc offset 0 limit 25

      After switching to the EJBQLToSQL92Compiler, an exception is raised on posgresql:

      org.postgresql.util.PSQLException: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list

              Unassigned Unassigned
              mihbor Michał Borowiecki (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: