• unknown's avatar
    Fixed bug #29095. · 1bab1ddc
    unknown authored
    INSERT into table from SELECT from the same table
    with ORDER BY and LIMIT was inserting other data
    than sole SELECT ... ORDER BY ... LIMIT returns.
    
    One part of the patch for bug #9676 improperly pushed
    LIMIT to temporary table in the presence of the ORDER BY
    clause.
    That part has been removed.
    
    
    sql/sql_select.cc:
      Fixed bug #29095.
      One part of the patch for bug #9676 improperly pushed
      LIMIT to temporary table in the presence of the ORDER BY
      clause.
      That part has been removed.
    mysql-test/t/insert_select.test:
      Expanded the test case for bug #9676.
      Created a test case for bug #29095.
    mysql-test/r/insert_select.result:
      Expanded the test case for bug #9676.
      Created a test case for bug #29095.
    1bab1ddc
insert_select.result 12.5 KB