1. 23 Jun, 2005 12 commits
    • unknown's avatar
      - implement inheritance of sp_instr: public Query_arena. · 1c90d1e2
      unknown authored
        We need every instruction to have its own arena, because we want to
        track instruction's state (INITIALIZED_FOR_SP -> EXECUTED). Because of 
        `if' statements and other conditional instructions used in stored 
        procedures, not every instruction of a stored procedure gets executed 
        during the first (or even subsequent) execution of the procedure. 
        So it's better if we track the execution state of every instruction 
        independently.
        All instructions of a given procedure now also share sp_head's 
        mem_root, but keep their own free_list.
        This simplifies juggling with free Item lists in sp_head::execute.
      - free_items() moved to be a member of Query_arena. 
      - logic of 'backup_arena' debug member of Query_arena has been
        changed to support
        multi-backups. Until now, TRUE 'backup_arena' meant that there is
        exactly one active backup of the THD arena. Now it means simply that
        the arena is used for backup, so that we can't accidentally overwrite an 
        existing backup. This allows doing multiple backups, e.g. in
        sp_head::execute and Cursor::fetch, when THD arena is already backed up
        but we want to set yet another arena (usually the 'permanent' arena,
        to save permanent transformations/optimizations of a parsed tree).
      
      
      sql/sp_head.cc:
        - use Query_arena support in sp_head::execute() as now sp_instr inherites
          from it.
      sql/sp_head.h:
        - inherite sp_instr from Query_arena
      sql/sql_class.cc:
        - changed the principle of Query_arena::backup_arena; free_items is now
          a member of Query_arena.
      sql/sql_class.h:
        - changed the principle of Query_arena::backup_arena; free_items is now
          a member of Query_arena.
      sql/sql_prepare.cc:
        free_items() is now a member of Query_arena.
      sql/sql_select.cc:
        free_items() now automatically sets free_list to zero.
      1c90d1e2
    • unknown's avatar
      Merge mysql.com:/home/svoj/devel/mysql/mysql-5.0.8-build · 7263eb0e
      unknown authored
      into mysql.com:/home/svoj/devel/mysql/mysql-5.0.9
      
      7263eb0e
    • unknown's avatar
      Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-5.0 · ac68d527
      unknown authored
      into rurik.mysql.com:/home/igor/mysql-5.0
      
      ac68d527
    • unknown's avatar
      opt_range.cc: · 62b82e18
      unknown authored
        Identation correction.
      
      
      sql/opt_range.cc:
        Identation correction.
      62b82e18
    • unknown's avatar
      Merge mysql.com:/space/my/mysql-4.1 · de9c97ed
      unknown authored
      into mysql.com:/space/my/mysql-5.0-build
      
      de9c97ed
    • unknown's avatar
      Merge rurik.mysql.com:/home/igor/mysql-5.0 · 71150f3c
      unknown authored
      into rurik.mysql.com:/home/igor/dev/mysql-5.0-0
      
      
      sql/opt_range.cc:
        Auto merged
      71150f3c
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0 · e7086e93
      unknown authored
      into mysql.com:/home/psergey/mysql-5.0-back-vac-look
      
      
      sql/opt_range.cc:
        Auto merged
      e7086e93
    • unknown's avatar
      WL#2286 - Compile MySQL w/YASSL support · 547ed845
      unknown authored
      Fix for "multiple definition of __cxa_pure_virtual" link failure
      when compiling with icc.
      
      
      extra/yassl/taocrypt/include/runtime.hpp:
        Do not define __cxa_pure_virtual for ICC.
        Fixes "multiple definition of __cxa_pure_virtual" link failure on production.
      547ed845
    • unknown's avatar
      Merge mysql.com:/space/my/mysql-4.1-build · 2c941994
      unknown authored
      into mysql.com:/space/my/mysql-5.0.8-clone
      
      2c941994
    • unknown's avatar
      - manual merge of the new node names · 84691d4b
      unknown authored
      84691d4b
    • unknown's avatar
      - fixed text file generation - the node names in the info page had changed · ea252b8c
      unknown authored
      
      BitKeeper/deleted/.del-generate-flag-images~f77476753fff8186:
        Delete: Docs/Support/generate-flag-images
      Docs/Makefile.am:
        - fixed node names for the new info file
      Docs/Support/generate-text-files.pl:
        - stop printing if the index was reached
      ea252b8c
    • unknown's avatar
      opt_range.cc: · ff696375
      unknown authored
        Fixed buf #11487.
        Added a call of  QUICK_RANGE_SELECT::init to the
        QUICK_RANGE_SELECT::reset method. Without it the second
        evaluation of a subquery employing the range access failed.
      subselect.result, subselect.test:
        Added a test case for bug #11487.
      
      
      mysql-test/t/subselect.test:
        Added a test case for bug #11487.
      mysql-test/r/subselect.result:
        Added a test case for bug #11487.
      sql/opt_range.cc:
        Fixed buf #11487.
        Added a call of  QUICK_RANGE_SELECT::init to the
        QUICK_RANGE_SELECT::reset method. Without it the second
        evaluation of a subquery employing the range access failed.
      ff696375
  2. 22 Jun, 2005 28 commits