mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 04:26:45 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			794 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			794 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
 | |
| --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()`;
 | |
| source include/show_binlog_events.inc;
 | |
| drop database `drop-temp+table-test`;
 | |
| 
 | |
| # End of 4.1 tests
 | 
