Server crashes in test_if_skip_sort_order on EXPLAIN with GROUP BY and HAVING in EXISTS subquery

Description

bzr version-info

I suppose it's a regression from MDEV-193, as it appeared with revno 3445 (reproducible on 3445, not reproducible on 3444).

Reproducible with MyISAM, Aria, InnoDB;.

Minimal optimizer_switch:
in_to_exists=on

Full optimizer_switch (default):

Test case:

Environment

None

Assignee

Sergei Petrunia

Reporter

Elena Stepanova

Labels

None

Fix versions

Affects versions

Priority

Critical
Configure