~maria-captains/maria/5.3

Viewing all changes in revision 3319.

  • Committer: timour at askmonty
  • Date: 2011-11-28 13:24:07 UTC
  • Revision ID: timour@askmonty.org-20111128132407-c8t63ty8nfb5nl28
Fix bugs lp:833777, lp:894397

Analysis:
lp:894397 was a consequence of a prior incorrect fix of lp:833777
which didn't take into account that even when all tables are
constant there may be correlated conditions, and the where clause
is not equivalent to the constant conditions.

Solution:
When there are constant tables only, evaluate only the conditions
that reference outer fields, because the constant conditions are
already checked, and the where clause doesn't have other conditions
than constant ones, and outer referencing ones. The fix for
lp:894397 also fixes lp:833777.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: