1. 20 Jan, 2005 2 commits
    • unknown's avatar
      BUG#6034 - Error code 124: Wrong medium type · 7b650b77
      unknown authored
      Merged a different solution from 4.1 to 5.0.
      Unexplainable diffs.
      
      
      mysql-test/r/insert_select.result:
        BUG#6034 - Error code 124:  Wrong medium type
        Merge seems to replace the test results by a new version of itself.
      mysql-test/t/insert_select.test:
        BUG#6034 - Error code 124:  Wrong medium type
        Merge seems to replace the test case by a new version of itself.
      sql/sql_select.cc:
        BUG#6034 - Error code 124:  Wrong medium type
        This is solved differently between 5.0 and 4.1.
        The differences are unexplainable.
        result->prepare2() is new to 5.0, but doesn't
        appear in the diffs. Weird.
      7b650b77
    • unknown's avatar
      BUG#6034 - Error code 124: Wrong medium type · 47017298
      unknown authored
      Completely recoded the bugfix for 4.1.
      This is just a merge changeset.
      
      
      mysql-test/r/insert_select.result:
        BUG#6034 - Error code 124:  Wrong medium type
        Replaced TYPE= by ENGINE=
      mysql-test/t/insert_select.test:
        BUG#6034 - Error code 124:  Wrong medium type
        Replaced TYPE= by ENGINE=
      sql/sql_select.cc:
        BUG#6034 - Error code 124:  Wrong medium type
        Completely recoded the bugfix for 4.1.
      47017298
  2. 19 Jan, 2005 3 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
  3. 18 Jan, 2005 35 commits