ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Renuka Srishti (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OFBIZ-9428) getResultsSizeAfterPartialList() return wrong count with distinct() for View Entity
Date Sat, 24 Jun 2017 08:23:02 GMT

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

Renuka Srishti updated OFBIZ-9428:
----------------------------------
    Description: 
Here is the code sample to test the issue
{code}
EntityListIterator productAssocListItr = null;
productAssocListItr = from("ProductAndAssoc").distinct().queryIterator();
productAssocListSize = productAssocListItr.getResultsSizeAfterPartialList();
{code}
productAssocListSize will differ from the actual distinct records in the ProductAndAssoc View
Entity.
This issue exists beacuase its give distinct records on the basis of the first cloumn in the
table.

  was:
Here is the code sample to test the issue
{code}
EntityListIterator productAssocListItr = null;
productAssocListItr = from("ProductAndAssoc").distinct().queryIterator();
productAssocListSize = productAssocListItr.getResultsSizeAfterPartialList();
{code}
productAssocListSize will differ from the actual distinct records in the ProductAndAssoc View
Entity.


> getResultsSizeAfterPartialList() return wrong count with distinct() for View Entity
> -----------------------------------------------------------------------------------
>
>                 Key: OFBIZ-9428
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9428
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: Trunk
>            Reporter: Renuka Srishti
>            Assignee: Jacques Le Roux
>
> Here is the code sample to test the issue
> {code}
> EntityListIterator productAssocListItr = null;
> productAssocListItr = from("ProductAndAssoc").distinct().queryIterator();
> productAssocListSize = productAssocListItr.getResultsSizeAfterPartialList();
> {code}
> productAssocListSize will differ from the actual distinct records in the ProductAndAssoc
View Entity.
> This issue exists beacuase its give distinct records on the basis of the first cloumn
in the table.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message