mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Update for delete_all_rows() which will be used for TRUNCATE and DELETE support.
mysql-test/t/archive.test: Auto merged sql/handler.h: Auto merged mysql-test/r/archive.result: Result sets sql/examples/ha_archive.cc: Update for tests sql/examples/ha_archive.h: Updated from merge, added new method for solving truncate problems.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -1332,6 +1332,19 @@ INSERT DELAYED INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily',''
|
||||
#
|
||||
# Cleanup, test is over
|
||||
#
|
||||
drop table t1, t2, t4;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
||||
#
|
||||
# For bug #12836
|
||||
# Delete was allowing all rows to be removed
|
||||
DELETE FROM t2;
|
||||
SELECT * FROM t2;
|
||||
INSERT INTO t2 VALUES (2,011401,37,'breaking','dreaded','Steinberg','W');
|
||||
INSERT INTO t2 VALUES (3,011402,37,'Romans','scholastics','jarring','');
|
||||
INSERT INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily','');
|
||||
SELECT * FROM t2;
|
||||
TRUNCATE TABLE t2;
|
||||
SELECT * FROM t2;
|
||||
|
||||
drop table t1, t2, t4;
|
||||
|
Reference in New Issue
Block a user