/[Apache-SVN]
ViewVC logotype

Revision 1804323


Jump to revision: Previous Next
Author: jleroux
Date: Mon Aug 7 10:48:45 2017 UTC (6 years, 9 months ago)
Changed paths: 1
Log Message:
"Applied BY HAND fix from trunk framework for revision: 1804319  " 
------------------------------------------------------------------------
r1804319 | jleroux | 2017-08-07 12:40:32 +0200 (lun. 07 août 2017) | 20 lignes

Fixed: Bug SQL Count Distinct command in GenericDAO.java 
(OFBIZ-5701)

jleroux: Kieuanhvu's explanation was not totally clear. So I rather provide
Renuka Srishti's at OFBIZ-9428 "getResultsSizeAfterPartialList() return wrong 
count with distinct() for View Entity"

Here is the code sample to test the issue:

EntityListIterator productAssocListItr = null;
productAssocListItr = from("ProductAndAssoc").distinct().queryIterator();
productAssocListSize = productAssocListItr.getResultsSizeAfterPartialList();

productAssocListSize will differ from the actual distinct records in the 
ProductAndAssoc View Entity.
This issue exists because it gives distinct records on the basis of the 
first column in the table.

Thanks: Kieuanhvu for the patch, Renuka Srishti for a clear explanation and a 
simple way to test (in a groovy for me)
------------------------------------------------------------------------


Changed paths

Path Details
Directoryofbiz/branches/release13.07/framework/entity/src/org/ofbiz/entity/datasource/GenericDAO.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26