• Michael Widenius's avatar
    MDEV-5854 Interrupted CREATE OR REPLACE is written into binlog, and in a wrong format · 913d1f19
    Michael Widenius authored
    
    mysql-test/r/create_or_replace2.result:
      Added test case
    mysql-test/t/create_or_replace.test:
      Fixed comment
    mysql-test/t/create_or_replace2.test:
      Added test case
    sql/sql_base.cc:
      Safety fix:
      Don't let threads with query_id=0 free temporary tables as this may free temporary tables not in use.
      This is mostly the case for the slave io threads, as most other threads has thd->query_id != 0.
    sql/sql_table.cc:
      Added comment.
      Ignore kill when opening temporary table for CREATE ... LIKE.
      This fixed the original isue
    913d1f19
create_or_replace2.result 642 Bytes