1. 21 Sep, 2007 1 commit
    • evgen@sunlight.local's avatar
      Bug#30384: Having SQL_BUFFER_RESULT option in the CREATE .. KEY(..) .. SELECT · bb5cdfb8
      evgen@sunlight.local authored
      led to creating corrupted index.
      
      While execution of the  CREATE .. SELECT SQL_BUFFER_RESULT statement the 
      engine->start_bulk_insert function was called twice. On the first call
      On the first call MyISAM disabled all non-unique indexes and on the second
      call it decides to not re-enable them because all indexes was disabled.
      Due to this no indexes was actually created during CREATE TABLE thus
      producing crashed table.
      
      Now the select_inset class has is_bulk_insert_mode flag which prevents
      calling the start_bulk_insert function twice.
      The flag is set in the select_create::prepare, select_insert::prepare2
      functions and the select_insert class constructor.
      The flag is reset in the select_insert::send_eof function.
      bb5cdfb8
  2. 20 Sep, 2007 2 commits
  3. 19 Sep, 2007 1 commit
  4. 15 Sep, 2007 1 commit
  5. 14 Sep, 2007 10 commits
  6. 13 Sep, 2007 5 commits
  7. 12 Sep, 2007 6 commits
  8. 11 Sep, 2007 1 commit
  9. 10 Sep, 2007 3 commits
  10. 06 Sep, 2007 1 commit
  11. 04 Sep, 2007 2 commits
  12. 03 Sep, 2007 7 commits