mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-25 18:38:00 +03:00 
			
		
		
		
	Original revision in 6.0: ------------------------------------------------------------ revno: 2599.108.1 committer: Alexander Nozdrin <alik@sun.com> branch nick: 6.0-rpl-bug40128 timestamp: Wed 2009-01-21 15:33:42 +0300 message: Fix for Bug#40128: drop-no_root fails under windows in 6.0-rpl. The problem was that directories with no permission (000) files are deleted differently on UNIX and on Windows. On UNIX, 000-permission file is deleted perfectly, but other files are left in the directory. On Windows, 000-permission file is not deleted, but other files are deleted. Also, the fix needed a change in mysqltest.c: 'chmod' directive should return a positive error code (in order to be handled). It's decided to return a constant '1' for all error codes just to be OS-independent. ------------------------------------------------------------
		
			
				
	
	
		
			29 lines
		
	
	
		
			454 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			454 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
 | |
| # --
 | |
| # -- Bug#26704: Failing DROP DATABASE brings mysql-client out of sync.
 | |
| # --
 | |
| 
 | |
| DROP DATABASE IF EXISTS mysql_test;
 | |
| 
 | |
| CREATE DATABASE mysql_test;
 | |
| CREATE TABLE mysql_test.t1(c INT);
 | |
| use mysql_test;
 | |
| 
 | |
| chmod 000 mysql_test/t1.frm
 | |
| 
 | |
| DROP DATABASE mysql_test;
 | |
| 
 | |
| SELECT DATABASE();
 | |
| DATABASE()
 | |
| mysql_test
 | |
| 
 | |
| rm -f mysql_test/t1.MYD mysql_test/t1.MYI
 | |
| chmod 666 mysql_test/t1.frm
 | |
| rm -f mysql_test/t1.frm
 | |
| 
 | |
| DROP DATABASE mysql_test;
 | |
| 
 | |
| use test;
 | |
| 
 | |
| # -- End of Bug#26704.
 |