• Igor Babaev's avatar
    MDEV-28448 Assertion failure for SELECT with subquery using ON expression · 6e7c6fcf
    Igor Babaev authored
    This patch corrects the fix for MDEV-26412.
    Note that when parsing an ON expression the pointer to the current select
    is always in select_stack[select_stack_top - 1]. So the pointer to the
    outer select (if any) is in select_stack[select_stack_top - 2].
    
    The query manifesting this bug is added to the test case of MDEV-26412.
    6e7c6fcf
sql_lex.h 157 KB