~maria-captains/maria/5.2

Viewing all changes in revision 3142.

  • Committer: Oleksandr Byelkin
  • Date: 2012-05-02 16:11:02 UTC
  • Revision ID: sanja@askmonty.org-20120502161102-xa3om8voxassnyut
MDEV-214 lp:967242 Wrong result with JOIN, AND in ON condition, multi-part key, GROUP BY, subquery and OR in WHERE

The problem was in the code (update_const_equal_items()) which marked
index parts constant independently of the place where the equality was used.
In the test suite it marked t2_1.c part constant despite the fact that
it connected by OR with other expression.

Solution is to mark constant only top equalities connected with AND.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: