~maria-captains/maria/10.0-exists2in

Viewing all changes in revision 3487.

  • Committer: sanja at montyprogram
  • Date: 2012-12-10 10:51:07 UTC
  • Revision ID: sanja@montyprogram.com-20121210105107-380dzslwjn4ajh1a
MDEV-3906 fix. Server crashes in Dependency_marker::visit_field on 2nd execution of PS with exists_to_in and NOT EXISTS subquery.

The problem is that in case of NOT we put IS NOT NULL befoe Item_in_optimizer with reference on its left expression. On the first execution the left expression is already "fixed". But on the second IS NOT NULL fix_field() called before and so it is not fix fielded.

Fix is to allow direct references to call fixfields of its arguments if it is needed.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: