• unknown's avatar
    Fixed bug #29834. · 90c5621d
    unknown authored
    Using view columns by their names during an execution of
    a prepared SELECT statement or a SELECT statement inside
    a SP caused a memory leak.
    
    
    sql/sql_base.cc:
      Fixed bug #29834.
      The find_field_in_view function has been modified to
      use the execution memory root for the Item_direct_view_ref
      objects allocation at non-first executions of
      a PS/SP instead of the statement memory.
    mysql-test/t/sp.test:
      Updated test case for bug #29834.
    mysql-test/r/sp.result:
      Updated test case for bug #29834.
    90c5621d
sql_base.cc 194 KB