mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	Added back missing return in mysql_delete() mysql-test/my_manage.c: Cleanup: Remove some #ifdef mysql-test/r/drop_temp_table.result: Delete database that may be left from other test mysql-test/t/drop_temp_table.test: Delete database that may be left from other test sql/log.cc: false -> FALSE true -> TRUE Wait until readers_count is 0 (not just for a signal) NOTE: it's very likely that the way to handle readers_count is wrong. (We are in pthread_cond_wait freeing a mutex that is not the innermost mutex, which can lead to deadlocks) I will talk with Guilhem about this ASAP sql/log_event.h: Remove number from last even to help future merges (all compilers I know of can handle this properly) sql/sql_delete.cc: Add back missing RETURN (was lost in a merge) Indentation fixes
		
			
				
	
	
		
			32 lines
		
	
	
		
			910 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			910 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Embedded server doesn't support binlog
 | |
| -- source include/not_embedded.inc
 | |
| 
 | |
| --disable_warnings
 | |
| drop database if exists `drop-temp+table-test`;
 | |
| --enable_warnings
 | |
| 
 | |
| connect (con1,localhost,root,,);
 | |
| connect (con2,localhost,root,,);
 | |
| connection con1;
 | |
| reset master;
 | |
| create database `drop-temp+table-test`;
 | |
| use `drop-temp+table-test`;
 | |
| create temporary table shortn1 (a int);
 | |
| create temporary table `table:name` (a int);
 | |
| create temporary table shortn2 (a int);
 | |
| select get_lock("a",10);
 | |
| disconnect con1;
 | |
| 
 | |
| connection con2;
 | |
| # We want to SHOW BINLOG EVENTS, to know what was logged. But there is no
 | |
| # guarantee that logging of the terminated con1 has been done yet.
 | |
| # To be sure that logging has been done, we use a user lock.
 | |
| select get_lock("a",10);
 | |
| let $VERSION=`select version()`;
 | |
| --replace_result $VERSION VERSION
 | |
| --replace_column 2 # 5 #
 | |
| show binlog events;
 | |
| drop database `drop-temp+table-test`;
 | |
| 
 | |
| # End of 4.1 tests
 |