1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00
Davi Arnaut 577e390ece Bug#37016: TRUNCATE TABLE removes some rows but not all
The special TRUNCATE TABLE (DDL) transaction wasn't being properly
rolled back if a error occurred during row by row deletion. The
error can be caused by a foreign key restriction imposed by InnoDB
SE and would cause the server to erroneously issue a implicit
commit.

The solution is to rollback the transaction if a truncation via row
by row deletion fails, otherwise commit. All effects of a TRUNCATE 
ABLE operation are rolled back if a row by row deletion fails.
2009-01-09 08:20:32 -02:00
..
2003-08-28 06:08:17 +03:00
2008-11-24 16:56:48 -05:00
2008-03-17 14:26:00 +03:00
2005-07-06 17:16:22 +05:00
2007-06-28 21:34:54 +04:00
2007-06-28 21:34:54 +04:00
2007-06-28 21:34:54 +04:00
2006-01-12 19:51:02 +01:00
2007-06-28 21:34:54 +04:00
2008-12-02 11:05:56 +01:00
2008-05-08 20:13:39 +02:00
2006-09-13 15:37:35 -06:00
2006-04-12 15:56:29 +02:00
2007-02-19 15:31:55 +03:00
2007-09-05 18:02:46 +02:00
2007-06-19 11:38:07 +02:00
2006-02-16 16:33:46 +01:00
2007-04-10 18:01:29 +03:00
2006-01-12 19:51:02 +01:00
2004-12-13 21:00:43 +01:00
2006-08-16 19:29:49 +02:00
2007-06-21 21:58:59 +02:00
2008-01-14 15:38:02 +08:00
2008-01-14 15:38:02 +08:00
2008-01-14 15:38:02 +08:00
2006-11-20 22:42:06 +02:00
2006-12-11 11:44:03 -05:00
2007-06-21 21:58:59 +02:00
2007-06-21 21:58:59 +02:00
2008-06-25 16:59:38 +02:00
2008-12-02 11:05:56 +01:00