metamodel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kasper Sørensen (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (METAMODEL-78) simple SELECT DISTINCT returns duplicates
Date Tue, 20 Jan 2015 08:00:56 GMT

     [ https://issues.apache.org/jira/browse/METAMODEL-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kasper Sørensen resolved METAMODEL-78.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 4.3.2
         Assignee: Fabian Welz

Fixed as of commit c706df83088150a466d94625ed14f913f52adce9

> simple SELECT DISTINCT returns duplicates
> -----------------------------------------
>
>                 Key: METAMODEL-78
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-78
>             Project: Apache MetaModel
>          Issue Type: Bug
>            Reporter: Ryan Berdeen
>            Assignee: Fabian Welz
>             Fix For: 4.3.2
>
>
> Running {{SELECT DISTINCT name FROM table}} on a PojoDataContext returns duplicate names.
Adding {{ORDER BY name}} fixes it.
> It looks like https://github.com/apache/incubator-metamodel/blob/master/core/src/main/java/org/apache/metamodel/QueryPostprocessDataContext.java#L159
matches, and returns without applying the {{DISTINCT}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message