Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.
This repository was archived by the owner on Jan 8, 2020. It is now read-only.

Zend\Db\Sql\Predicate\Predicate: $nextPredicateCombineOperator + addPredicate() not working #6800

@Pittiplatsch

Description

@Pittiplatsch

Zend\Db\Sql\Predicate\PredicateSet::addPredicate() doesn't consider $this->nextPredicateCombineOrder, and it actually can't do so because $this->nextPredicateCombineOrder is defined in Zend\Db\Sql\Predicate\Predicate which derives from Zend\Db\Sql\Predicate\PredicateSet.

I created two test cases: #6799
Test case 50 succeeds implicitly because the default combine order which is used by Zend\Db\Sql\Predicate\PredicateSet::addPredicate() instead of intended Zend\Db\Sql\Predicate\Predicate::nextPredicateCombineOrder is AND.
Test case 51 however fails, unveiling the observed (mis-) behaviour.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions