• Sergey Glukhov's avatar
    Bug#46184 Crash, SELECT ... FROM derived table procedure analyze · 367c14b8
    Sergey Glukhov authored
    The crash happens because select_union object is used as result set
    for queries which have derived tables.
    select_union use temporary table as data storage and if
    fields count exceeds 10(count of values for procedure ANALYSE())
    then we get a crash on fill_record() function.
    
    
    mysql-test/r/analyse.result:
      test result
    mysql-test/r/subselect.result:
      result fix
    mysql-test/t/analyse.test:
      test case
    mysql-test/t/subselect.test:
      test fix
    sql/sql_yacc.yy:
      The crash happens because select_union object is used as result set
      for queries which have derived tables.
      select_union use temporary table as data storage and if
      fields count exceeds 10(count of values for procedure ANALYSE())
      then we get a crash on fill_record() function.
    367c14b8
analyse.result 8.65 KB