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] [Commented] (METAMODEL-78) simple SELECT DISTINCT returns duplicates
Date Sat, 17 Jan 2015 18:30:34 GMT

    [ https://issues.apache.org/jira/browse/METAMODEL-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14281474#comment-14281474
] 

Kasper Sørensen commented on METAMODEL-78:
------------------------------------------

Thanks for the fix Fabian. I can give it my +1 (see more details on the review board). Let's
give others time to pitch in, and if nothing happens I think we add it to master in a few
days.

> 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
>
> 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