1. 07 Jul, 2003 5 commits
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/work-top3-4.1 · 21afeb48
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-simple_in-4.1
      
      
      mysql-test/r/subselect.result:
        Auto merged
      mysql-test/t/subselect.test:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_select.h:
        Auto merged
      21afeb48
    • unknown's avatar
      merge · 07dc27a3
      unknown authored
      
      sql/sql_select.cc:
        Auto merged
      07dc27a3
    • unknown's avatar
      Optimisation if simple IN subselect with primary index · 0383e793
      unknown authored
      (SCRUM) (part of WL#818)
      
      
      mysql-test/r/subselect.result:
        test of new optimisation
      mysql-test/t/subselect.test:
        test of new optimisation
      sql/item_subselect.cc:
        new engine for simple IN with primary index
      sql/item_subselect.h:
        new engine for simple IN with primary index
      sql/sql_lex.h:
        fixed typo
      sql/sql_select.cc:
        engine changing
        report_error can't be static, because it used in new engine
      sql/sql_select.h:
        new JT_ type (just for information in EXPLAIN statement)
        report_error can't be static, because it used in new engine
      0383e793
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 · 4433aebd
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-alloc_group-4.1
      
      4433aebd
    • unknown's avatar
      merge · 56968084
      unknown authored
      
      mysql-test/t/subselect.test:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_cmpfunc.h:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      56968084
  2. 06 Jul, 2003 2 commits
    • unknown's avatar
      fixed subselect with to temporary tables executing · 9277fde7
      unknown authored
      (now it return correct results. Test was commited before, but it is not pushed,
      BUG# is not registered, because bug was introduced after release)
      
      
      sql/sql_select.cc:
        fixed subselect with to temporary tables executing
      sql/sql_select.h:
        fixed subselect with to temporary tables executing
      9277fde7
    • unknown's avatar
      fixed memory leak in group_concat function (BUG#796) · 603c89a0
      unknown authored
      fixed test func_gconcat to be repeatable independent of presend tables and avoid removing user tables
      
      
      mysql-test/r/func_gconcat.result:
        removed warning in test
        fixed table tnames (should be tN, where N is number)
      mysql-test/t/func_gconcat.test:
        removed warning in test
        fixed table tnames (should be tN, where N is number)
      sql/item_sum.cc:
        added debug information
        fixed memory leak in group_concat function
      603c89a0
  3. 05 Jul, 2003 2 commits
    • unknown's avatar
      avoiding of allocating JOIN structure on every UNION executing · ff921a55
      unknown authored
      (SCRUM)
      
      
      sql/sql_select.cc:
        support of fake_select_lex join clean
        removed compiler warning
      sql/sql_select.h:
        JOIN clean for fake_select_lex
      sql/sql_union.cc:
        avoiding of allocating JOIN structure on every UNION executing
      ff921a55
    • unknown's avatar
      reduced using of slow current_thd/current_lex macro · 51bd4512
      unknown authored
      initialization of item_thd moved to constructor (in any case we need thd in constructor)
      initialization of group_concat_max_len to constructor to avoid incorrect length reporting (BUG#757)
      removed Item_func_group_concat::fix_length_and_dec() because item have its own fix_fields and will not have inherited items
      
      
      mysql-test/r/func_gconcat.result:
        test for BUG#757
      mysql-test/t/func_gconcat.test:
        test for BUG#757
      sql/item_sum.cc:
        reduced using of slow current_thd/current_lex macro
        initialization of item_thd moved to constructor (in any case we need thd in constructor)
        initialization of group_concat_max_len to constructor to avoid incorrect length reporting (BUG#757)
      sql/item_sum.h:
        removed Item_func_group_concat::fix_length_and_dec() because item have its own fix_fields and will not have inherited items
      51bd4512
  4. 04 Jul, 2003 12 commits
  5. 03 Jul, 2003 13 commits
  6. 02 Jul, 2003 6 commits
    • unknown's avatar
      (SCRUM) · 642dbeba
      unknown authored
      It looks like samll revolution in SELECT_LEX tree, but it was only natural way to solve problem with name resolution of external fields inside subselect which belongs to global order of union
      also it have following advantages:
       - removed mess with current_select type conversion
         - type checking/converting
         - a lot of virtual methods
       - fake select for union execution allocated only once (it was allocated for every subselect with union executing)
      
      changes:
      fixed bug with outer fields name resolution of subqueries which belong to global ORDER BY clause
      remuved select_lex() function, now thd->lex.current_select always have type SELECT_LEX
      new SELECT_LEX (fake_select_lex) will be allocated in case of UNION for using in UNION processing
      fake_select_lex allocated for union hold global ORDER BY & LIMIT clauses and have linkage equal to GLOBAL_OPTIONS_TYPE 
      new description of SELECT_LEX tree
      
      (SCRUM)
      
      
      sql/item.cc:
        global parameters moved to fake_select_lex
      sql/item_subselect.cc:
        global parameters moved to fake_select_lex
      sql/item_sum.cc:
        no need type checking & converion now
      sql/sql_delete.cc:
        no need type checking & converion now
      sql/sql_derived.cc:
        global parameters moved to fake_select_lex
      sql/sql_lex.cc:
        not used fields/mrthods moved from st_select_lex_node to st_select_lex
        global parameters moved to fake_select_lex
      sql/sql_lex.h:
        comments about new tree of select_lex s
        not used fields/mrthods moved from st_select_lex_node to st_select_lex
        global parameters moved to fake_select_lex
      sql/sql_parse.cc:
        global parameters moved to fake_select_lex
        allocation of fake_select_lex on demand
      sql/sql_select.cc:
        now fake_select_lex marked as GLOBAL_OPTIONS_TYPE
      sql/sql_union.cc:
        global parameters moved to fake_select_lex
      sql/sql_yacc.yy:
        global parameters moved to fake_select_lex
      642dbeba
    • unknown's avatar
      475e0a9f
    • unknown's avatar
      fixed typos · 8713e677
      unknown authored
      8713e677
    • unknown's avatar
    • unknown's avatar
      Item tree iterator · 7644ca44
      unknown authored
      fixed dependence of items from reduced subquery
      (SCRUM)
      
      
      sql/item.cc:
        fixed dependence of items from reduced subquery
      sql/item.h:
        fixed dependence of items from reduced subquery
        Item tree iterator
      sql/item_cmpfunc.cc:
        Item tree iterator
      sql/item_cmpfunc.h:
        Item tree iterator
      sql/item_func.cc:
        Item tree iterator
      sql/item_func.h:
        Item tree iterator
      sql/item_row.cc:
        Item tree iterator
      sql/item_row.h:
        Item tree iterator
      sql/item_strfunc.h:
        Item tree iterator
      sql/item_subselect.cc:
        Item tree iterator
      7644ca44
    • unknown's avatar
      Removed dbug.h inclussion from client/get_password.c (windows build fix) · 98a5419f
      unknown authored
      
      client/get_password.c:
        Removed dbug.h inclussion (windows build fix)
      98a5419f