• unknown's avatar
    fix for bug #12651 (item of a prepared query allocated on non-permanent · 77589752
    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
    77589752
ps.test 22.7 KB