where= does not set parenthesis leading to unexpected query when multiclause are used

Description

where="1=1 or 1 != 0" leads to
select ... from ... where ... and 1=1 or 1 != 0

should really be
select ... from ... where ... and (1=1 or 1 != 0)

Environment

None

Activity

Show:
Emmanuel Bernard
August 18, 2006, 11:52 PM

Fixed for <class where>, <collection where> and <many-to-many where>

Steve Ebersole
March 21, 2011, 7:05 PM

Bulk closing stale resolved issues

Assignee

Emmanuel Bernard

Reporter

Emmanuel Bernard

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure