metamodel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomasz Guzialek (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (METAMODEL-167) SELECT * from multiple tables with WHERE clause causes duplication of SelectItems
Date Sun, 02 Aug 2015 18:55:04 GMT

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

Tomasz Guzialek commented on METAMODEL-167:
-------------------------------------------

QueryPostprocessDataContext.executeQuery uses CollectionUtils.concat to concat SelecItems
from SELECT and SelectItems from FROM. Despite the same underlying Column, they are not equal
according to the equals() method (at least one difference I spotted is the that SelectItems
from WHERE clause do not have _fromItem field set which sounds correct, but it might affect
checking for equality.

> SELECT * from multiple tables with WHERE clause causes duplication of SelectItems
> ---------------------------------------------------------------------------------
>
>                 Key: METAMODEL-167
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-167
>             Project: Apache MetaModel
>          Issue Type: Bug
>            Reporter: Tomasz Guzialek
>
> While executing a SELECT * query on multiple tables together with a WHERE clause, SelectItems
from WHERE clause are concatenated with SelectItems enumerated from SELECT *. The result list
should not contain duplicate SelecItems, but this they are not correctly detected.
> Failing unit test coming soon in the comment.



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

Mime
View raw message