diff --git a/handler/ha_innodb.cc b/handler/ha_innodb.cc index f79af1e274c..7a3f245de3e 100644 --- a/handler/ha_innodb.cc +++ b/handler/ha_innodb.cc @@ -5335,7 +5335,8 @@ ha_innobase::delete_all_rows(void) if (thd_sql_command(user_thd) != SQLCOM_TRUNCATE) { fallback: /* We only handle TRUNCATE TABLE t as a special case. - DELETE FROM t will have to use ha_innobase::delete_row(). */ + DELETE FROM t will have to use ha_innobase::delete_row(), + because DELETE is transactional while TRUNCATE is not. */ DBUG_RETURN(my_errno=HA_ERR_WRONG_COMMAND); }