mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 19:06:14 +01:00 
			
		
		
		
	 f53321cbdb
			
		
	
	
	f53321cbdb
	
	
	
		
			
			While cleaning up a failed CREATE TABLE LIKE <sequence>, `mysql_rm_table_no_locks` erroneously attempted to remove all tables involved in the query, including the source table (sequence). Fix to temporarily modify `table_list` to ensure that only the intended table is removed during the cleanup.
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			354 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			354 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #
 | |
| # MDEV-20471 Assertion during cleanup of failed CREATE TABLE LIKE <sequence>
 | |
| #
 | |
| CREATE SEQUENCE s;
 | |
| set @save_debug_dbug=@@debug_dbug;
 | |
| set debug_dbug='+d,kill_query_on_sequence_insert';
 | |
| CREATE TABLE t LIKE s;
 | |
| ERROR 70100: Query execution was interrupted
 | |
| DROP TABLE t;
 | |
| ERROR 42S02: Unknown table 'test.t'
 | |
| DROP SEQUENCE s;
 | |
| set debug_dbug=@save_debug_dbug;
 |