[jira] Created: (OFBIZ-3302) EntityTestSuite testEntityListIterator assumes a default order by id

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

[jira] Created: (OFBIZ-3302) EntityTestSuite testEntityListIterator assumes a default order by id

Nicolas Malin (Jira)
EntityTestSuite testEntityListIterator assumes a default order by id
--------------------------------------------------------------------

                 Key: OFBIZ-3302
                 URL: https://issues.apache.org/jira/browse/OFBIZ-3302
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: Release Branch 9.04
            Reporter: Wickersheimer Jeremy
             Fix For: Release Branch 9.04


The test EntityTestSuite testEntityListIterator is assuming the entities are ordered by ID, although this may be true in some cases this fails with some DBs.
This should be made explicit :

  EntityListIterator iterator = delegator.find("Testing", EntityCondition.makeCondition("testingId", EntityOperator.LIKE, "T2-%"), null, null, UtilMisc.toList("testingId"), null);

This applies to 09.04, might apply to trunk as well if it was not fixed there already.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-3302) EntityTestSuite testEntityListIterator assumes a default order by id

Nicolas Malin (Jira)

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

Scott Gray reassigned OFBIZ-3302:
---------------------------------

    Assignee: Scott Gray

> EntityTestSuite testEntityListIterator assumes a default order by id
> --------------------------------------------------------------------
>
>                 Key: OFBIZ-3302
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3302
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 9.04
>            Reporter: Wickersheimer Jeremy
>            Assignee: Scott Gray
>             Fix For: Release Branch 9.04
>
>
> The test EntityTestSuite testEntityListIterator is assuming the entities are ordered by ID, although this may be true in some cases this fails with some DBs.
> This should be made explicit :
>   EntityListIterator iterator = delegator.find("Testing", EntityCondition.makeCondition("testingId", EntityOperator.LIKE, "T2-%"), null, null, UtilMisc.toList("testingId"), null);
> This applies to 09.04, might apply to trunk as well if it was not fixed there already.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-3302) EntityTestSuite testEntityListIterator assumes a default order by id

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Scott Gray closed OFBIZ-3302.
-----------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk

Thanks Jeremy, fixed in trunk r900511 and 9.04 r900512.

> EntityTestSuite testEntityListIterator assumes a default order by id
> --------------------------------------------------------------------
>
>                 Key: OFBIZ-3302
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3302
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 9.04
>            Reporter: Wickersheimer Jeremy
>            Assignee: Scott Gray
>             Fix For: Release Branch 9.04, SVN trunk
>
>
> The test EntityTestSuite testEntityListIterator is assuming the entities are ordered by ID, although this may be true in some cases this fails with some DBs.
> This should be made explicit :
>   EntityListIterator iterator = delegator.find("Testing", EntityCondition.makeCondition("testingId", EntityOperator.LIKE, "T2-%"), null, null, UtilMisc.toList("testingId"), null);
> This applies to 09.04, might apply to trunk as well if it was not fixed there already.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.