• unknown's avatar
    memory leacks in PS with subqueries fixed (adddition to fix of BUG#2462) · 00392bf8
    unknown authored
    
    sql/item.h:
      mechanism to keep reference in cache array for row IN
    sql/item_cmpfunc.cc:
      mechanism to keep reference in cache array for row IN
      layout fixed
    sql/item_cmpfunc.h:
      mechanism to keep reference in cache array for row IN
    sql/item_subselect.cc:
      fixed memory pools swapping
      prevented deleting Item_in_optimizer cache in case of row IN subquery
    sql/mysql_priv.h:
      declarations of function moved to be useful in sql_class.h
    sql/sql_base.cc:
      keep fields expanded from '*' in statement memory pool
    sql/sql_class.cc:
      fixed restoring/backup of memory pool and list of items
    sql/sql_class.h:
      memory allocation methods moved to Statement
      memory pool substituting for preparing
    sql/sql_lex.cc:
      ref_pointer_array kept in statement memory
    sql/sql_lex.h:
      reinitialization of UNIT
    sql/sql_prepare.cc:
      memory allocation/swapping fixed
    tests/client_test.c:
      layout fixed
    00392bf8
sql_lex.cc 40.7 KB