• unknown's avatar
    fix for bug #12651 (item of a prepared query allocated on non-permanent · f2571638
    unknown authored
    are thus dangling later)
    
    
    mysql-test/r/ps.result:
      test for bug #12651
      (data allocated on thd's arena but not on permanent arena)
    mysql-test/t/ps.test:
      test for bug #12651
      (data allocated on thd's arena but not on permanent arena)
    sql/sql_base.cc:
      if there is tree transformation then backup the current arena
      and use permanent one (for PS) otherwise the data will be deallocated
      after the prepare process is finished.
      this bug was introduced with the recent natural join patch
    f2571638
sql_base.cc 156 KB