• Igor Babaev's avatar
    MDEV-25484 Crash when parsing query using derived table containing TVC · 9fde2bba
    Igor Babaev authored
    This patch fixes parsing problems concerning derived tables that use table
    value constructors (TVC) with LIMIT and ORDER BY clauses of the form
      ((VALUES ... LIMIT ...) ORDER BY ...) as dt
    The fix has to be applied only to 10.3 as 10.4 that employs a different
    grammar rules has no such problems. The test cases should be merged
    upstream.
    
    Approved by Oleksandr Byelkin <sanja@mariadb.com>
    9fde2bba
sql_yacc.yy 558 KB