mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-27 05:56:07 +03:00 
			
		
		
		
	One of the tests introduced for this bug was failing because of path size restriction in windows. Moved the test case to a new test which is disabled under windows. mysql-test/r/partition_not_embedded.result: updated test results after removing a test case. mysql-test/r/partition_rename_longfilename.result: Test result for partition_rename_longfilename mysql-test/t/partition_not_embedded.test: Removed the test case which tests renaming partition table such that the file name is 255 char long. mysql-test/t/partition_rename_longfilename.test: Test case to test renaming partition table such that the file name is 255 char long. Moved from partition_no_embedded.
		
			
				
	
	
		
			82 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			82 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| DROP TABLE IF EXISTS t1, t2;
 | |
| # Bug#30102 test
 | |
| CREATE TABLE t1 (a INT)
 | |
| PARTITION BY RANGE (a)
 | |
| (PARTITION p0 VALUES LESS THAN (6),
 | |
| PARTITION `p1....................` VALUES LESS THAN (9),
 | |
| PARTITION p2 VALUES LESS THAN MAXVALUE);
 | |
| # List of files in database `test`, all original t1-files here
 | |
| t1#P#p0.MYD
 | |
| t1#P#p0.MYI
 | |
| t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYD
 | |
| t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYI
 | |
| t1#P#p2.MYD
 | |
| t1#P#p2.MYI
 | |
| t1.frm
 | |
| t1.par
 | |
| INSERT INTO t1 VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
 | |
| # Renaming to a file name where the first partition is 250 chars
 | |
| # and the second partition is 350 chars
 | |
| RENAME TABLE t1 TO `t2_new..............................................end`;
 | |
| Got one of the listed errors
 | |
| # List of files in database `test`, should not be any t2-files here
 | |
| # List of files in database `test`, should be all t1-files here
 | |
| t1#P#p0.MYD
 | |
| t1#P#p0.MYI
 | |
| t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYD
 | |
| t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYI
 | |
| t1#P#p2.MYD
 | |
| t1#P#p2.MYI
 | |
| t1.frm
 | |
| t1.par
 | |
| SELECT * FROM t1;
 | |
| a
 | |
| 1
 | |
| 10
 | |
| 2
 | |
| 3
 | |
| 4
 | |
| 5
 | |
| 6
 | |
| 7
 | |
| 8
 | |
| 9
 | |
| # List of files in database `test`, should be all t1-files here
 | |
| t1#P#p0.MYD
 | |
| t1#P#p0.MYI
 | |
| t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYD
 | |
| t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYI
 | |
| t1#P#p2.MYD
 | |
| t1#P#p2.MYI
 | |
| t1.frm
 | |
| t1.par
 | |
| # Renaming to a file name where the first partition is 156 chars
 | |
| # and the second partition is 256 chars
 | |
| RENAME TABLE t1 TO `t2_............................_end`;
 | |
| Got one of the listed errors
 | |
| # List of files in database `test`, should not be any t2-files here
 | |
| # List of files in database `test`, should be all t1-files here
 | |
| t1#P#p0.MYD
 | |
| t1#P#p0.MYI
 | |
| t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYD
 | |
| t1#P#p1@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e.MYI
 | |
| t1#P#p2.MYD
 | |
| t1#P#p2.MYI
 | |
| t1.frm
 | |
| t1.par
 | |
| SELECT * FROM t1;
 | |
| a
 | |
| 1
 | |
| 10
 | |
| 2
 | |
| 3
 | |
| 4
 | |
| 5
 | |
| 6
 | |
| 7
 | |
| 8
 | |
| 9
 | |
| DROP TABLE t1;
 | |
| # Should not be any files left here
 | |
| # End of bug#30102 test.
 |