[
https://issues.apache.org/jira/browse/DELTASPIKE-1299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16248896#comment-16248896
]
ASF GitHub Bot commented on DELTASPIKE-1299:
--------------------------------------------
GitHub user Mobe91 opened a pull request:
https://github.com/apache/deltaspike/pull/75
DELTASPIKE-1299: fixed orderby item order
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Mobe91/deltaspike DELTASPIKE-1299
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/deltaspike/pull/75.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #75
----
commit 873886ee2bb4fa6a9d61dae66b18757f0bb85f32
Author: Moritz Becker <[email protected]>
Date: 2017-11-12T15:30:13Z
DELTASPIKE-1299: fixed orderby item order
----
> Order by items are applied in alphabetic order
> ----------------------------------------------
>
> Key: DELTASPIKE-1299
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1299
> Project: DeltaSpike
> Issue Type: Bug
> Components: Data-Module
> Affects Versions: 1.8.0
> Reporter: Moritz Becker
>
> DeltaSpike data applies the order bys in parsed methods in alphabetic order
> which leads to semantically incorrect queries.
> For example, the method {{findAllOrderByNameAscIdDesc}} produces the
> following query:
> {code:sql}
> select * from ... order by id desc, name asc
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)