db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Fox (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (TORQUE-243) Criterion gets modified by Criteria
Date Tue, 13 Nov 2012 20:36:13 GMT

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

Thomas Fox resolved TORQUE-243.
-------------------------------

    Resolution: Fixed
    
> Criterion gets modified by Criteria
> -----------------------------------
>
>                 Key: TORQUE-243
>                 URL: https://issues.apache.org/jira/browse/TORQUE-243
>             Project: Torque
>          Issue Type: Bug
>    Affects Versions: 4.0-beta1
>            Reporter: Thomas Fox
>            Assignee: Thomas Fox
>             Fix For: 4.0-beta2
>
>
> In the situation
> Criterion criterion = new Criterion(SomePeer.COLUMN, value);
> Criteria criteria = new Criteria().where(criterion);
> criteria.and(SomePeer, someOtherColumn);
> the criteria.and() in the last line also unexpectedly changes the original criterion.
> Expected behaviour: The Criterion should not be changed by changing the criteria object.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message