[jira] [Commented] (OFBIZ-5701) Bug SQL Count Distinct command in GenericDAO.java

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

[jira] [Commented] (OFBIZ-5701) Bug SQL Count Distinct command in GenericDAO.java

Nicolas Malin (Jira)

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

Jacques Le Roux commented on OFBIZ-5701:
----------------------------------------

This is not a valid patch

patch -p1 <patch.patch
patching file framework/entity/src/org/ofbiz/entity/datasource/GenericDAO.java
patch: **** malformed patch at line 12:              modelViewEntity = (ModelViewEntity) modelEntity;

Would be better if you could provide  a patch in svn format. Also replace tabs by 4 spaces

Thanks

> Bug SQL Count Distinct command in GenericDAO.java
> --------------------------------------------------
>
>                 Key: OFBIZ-5701
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5701
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: kieuanhvu
>            Priority: Critical
>         Attachments: SQLDistinctGenericDAO.diff
>
>
> I have encounter the problem is: How can ofbiz framework count distinct for all selected fields in query function of delegator? Although EntityFindOptions.setDistinct(true) and the selected fields are all field, the ofbiz framework always count distinct follow only one field.
> I have resolved problem as my attact file



--
This message was sent by Atlassian JIRA
(v6.2#6252)