• unknown's avatar
    InnoDB: Prevent ALTER TABLE ... ENGINE=... · 8579d3cd
    unknown authored
    if there are foreign key constraints on the table. (Bug #5574)
    
    
    sql/ha_innodb.cc:
      Add method can_switch_engines()
    sql/ha_innodb.h:
      Add method can_switch_engines()
    sql/handler.h:
      Add method can_switch_engines()
    sql/sql_table.cc:
      Check handler::can_switch_engines() before switching storage engines
    8579d3cd
handler.h 22.3 KB