mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
Apply InnoDB snapshot innodb-5.1-ss2858, part 9. Improve a comment.
Detailed revision comments: r2744 | marko | 2008-10-09 10:53:09 +0300 (Thu, 09 Oct 2008) | 5 lines branches/5.1: ha_innobase::delete_all_rows(): In response to a user asking <http://forums.innodb.com/read.php?4,215,215> why DELETE FROM t is not mapped to TRUNCATE TABLE t as it is in MyISAM, note in a comment that DELETE is transactional while TRUNCATE is not.
This commit is contained in:
parent
915635bbbe
commit
9f8f9715d3
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue