[jira] [Updated] (OFBIZ-9428) getResultsSizeAfterPartialList() return wrong count with distinct() for View Entity

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-9428) getResultsSizeAfterPartialList() return wrong count with distinct() for View Entity

Nicolas Malin (Jira)

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