1. 20 Jan, 2005 32 commits
  2. 19 Jan, 2005 8 commits
    • unknown's avatar
      BUG#6034 - Error code 124: Wrong medium type. · ab7f56e3
      unknown authored
      Version for 5.0. Committed for merge.
      If the result table is one of the select tables in INSERT SELECT,
      we must not disable the result tables indexes before selecting.
      Now the preparation is split into two prepare methods.
      The first detects the situation and defers some preparations
      until the second phase.
      
      
      mysql-test/r/insert_select.result:
        BUG#6034 - Error code 124:  Wrong medium type.
        The test results.
      mysql-test/t/insert_select.test:
        BUG#6034 - Error code 124:  Wrong medium type.
        The test case.
      sql/sql_class.h:
        BUG#6034 - Error code 124:  Wrong medium type.
        Added a new method for deferred preparation actions.
      sql/sql_insert.cc:
        BUG#6034 - Error code 124:  Wrong medium type.
        If the insert table is one of the select tables, a part 
        of the result table preparations like disabling indexes
        has to be done after the select phase.
        This is now done in the new method select_insert::prepare2().
      sql/sql_select.cc:
        BUG#6034 - Error code 124:  Wrong medium type.
        The result table preparation is now split into prepare() and
        prepare2(). Disabling indexes and other preparation stuff
        is deferred until after the selection phase.
      ab7f56e3
    • unknown's avatar
      BUG#6034 - Error code 124: Wrong medium type. · 699a530a
      unknown authored
      Version for 4.1. Committed for merge.
      If the result table is one of the select tables in INSERT SELECT,
      we must not disable the result tables indexes before selecting.
      mysql_execute_command() detects the match for other reasons and
      adds the flag OPTION_BUFFER_RESULT to the 'select_options'. 
      In this case the result is put into a temporary table first. 
      Hence, we can defer the preparation of the insert
      table until the result is to be used.
      
      
      mysql-test/r/insert_select.result:
        BUG#6034 - Error code 124:  Wrong medium type.
        The test results.
      mysql-test/t/insert_select.test:
        BUG#6034 - Error code 124:  Wrong medium type.
        The test case.
      sql/sql_select.cc:
        BUG#6034 - Error code 124:  Wrong medium type.
        With OPTION_BUFFER_RESULT in the 'select_options',
        defer the preparation of the insert table until the 
        result is to be used.
      699a530a
    • unknown's avatar
      BUG#6034 - Error code 124: Wrong medium type. · 353bc070
      unknown authored
      Version for 4.0. Committed for merge.
      If the result table is one of the select tables in INSERT SELECT,
      we must not disable the result tables indexes before selecting.
      mysql_execute_command() detects the match for other reasons and
      adds the flag OPTION_BUFFER_RESULT to the 'select_options'. 
      In this case the result is put into a temporary table first. 
      Hence, we can defer the preparation of the insert
      table until the result is to be used.
      
      
      mysql-test/r/insert_select.result:
        BUG#6034 - Error code 124:  Wrong medium type.
        The test results.
      mysql-test/t/insert_select.test:
        BUG#6034 - Error code 124:  Wrong medium type.
        The test case.
      sql/sql_select.cc:
        BUG#6034 - Error code 124:  Wrong medium type.
        With OPTION_BUFFER_RESULT in the 'select_options',
        defer the preparation of the insert table until the 
        result is to be used. Unfortunately, this happens
        at several places.
      353bc070
    • unknown's avatar
      Merge mysql.com:/dbdata/psergey/mysql-4.1-bug7885 · 246df068
      unknown authored
      into mysql.com:/dbdata/psergey/mysql-5.0-bug7885
      
      
      mysql-test/r/subselect.result:
        Auto merged
      mysql-test/t/subselect.test:
        Auto merged
      sql/item_subselect.cc:
        Auto merged
      246df068
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1 · c8343423
      unknown authored
      into mysql.com:/dbdata/psergey/mysql-4.1-bug7885
      
      
      c8343423
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-5.0-7632 · 0c20ad6c
      unknown authored
      into mysql.com:/home/jimw/my/mysql-5.0-clean
      
      
      0c20ad6c
    • unknown's avatar
      Build federated storage engine as part of max builds. · 8db5237b
      unknown authored
      
      BUILD/SETUP.sh:
        Add --with-federated-storage-engine to max_configs
      8db5237b
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-4.1-clean · ca80eb73
      unknown authored
      into mysql.com:/home/jimw/my/mysql-5.0-clean
      
      
      BitKeeper/deleted/.del-compile-amd64-debug-max:
        Delete: BUILD/compile-amd64-debug-max
      BUILD/SETUP.sh:
        Auto merged
      BitKeeper/deleted/.del-compile-amd64-max:
        Delete: BUILD/compile-amd64-max
      ca80eb73