mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
MDEV-5612 - my_rename() deletes files when it shouldn't
Ported fix for MySQL BUG#51861.
This commit is contained in:
@@ -1917,3 +1917,12 @@ SELECT * FROM t1;
|
||||
|
||||
DROP TABLE t1;
|
||||
--echo End of 5.1 tests
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-5612 - my_rename() deletes files when it shouldn't
|
||||
--echo #
|
||||
CREATE TABLE t1(a INT NOT NULL) ENGINE=CSV;
|
||||
move_file $MYSQLD_DATADIR/test/t1.CSV $MYSQLD_DATADIR/test/t2.CSV;
|
||||
RENAME TABLE t1 TO t2;
|
||||
SELECT * FROM t2;
|
||||
DROP TABLE t2;
|
||||
|
||||
Reference in New Issue
Block a user