Fix proximity adjustment calculator
authorMike Rylander <mrylander@gmail.com>
Thu, 16 Jan 2014 18:58:12 +0000 (13:58 -0500)
committerMike Rylander <mrylander@gmail.com>
Thu, 16 Jan 2014 18:58:12 +0000 (13:58 -0500)
commit9c065160e0bdd31459ba45f296107701b05d515a
treeb9f59d27edacfba77546f57aaf1744905061b4b7
parentf7a049def031246256ddb4ae6d572199f193b36e
Fix proximity adjustment calculator

The canonical use case for proximity adjustment is to use it broadly
to effect the local proximity of items within a particular area, in
a like manner, across many parts of the org tree.  However, in cases
where it is lightly used, or used with non-overlapping criteria columns,
there are cases where the adjustment will spread beyond its intended
range of influence.

The changes here create a much stricter and correct test for rule
matching, which will end in the correct choice of rules in all cases.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/090.schema.action.sql