mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 18:36:12 +01:00 
			
		
		
		
	 62decb5e8b
			
		
	
	
	62decb5e8b
	
	
	
		
			
			* IS_USER_TEMP_TABLE() was misleading, name didn't match the code * list of temp tables was rescanned number_of_databases times * some temporary tables were not shown (from nonexistent databases) * some temporary tables were shown more than once (e.g. after self-joins) * sys.table_exists() - avoid querying I_S twice * fix handling of temporary MERGE tables - it's pointless to fully open them, they're not in thd->temporary_tables, so they simply fail to open and are skipped. Relax the assertion instead.
		
			
				
	
	
		
			57 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| include/master-slave.inc
 | |
| [connection master]
 | |
| connection master;
 | |
| CREATE TABLE t1 (a int);
 | |
| CREATE TABLE t2 (a int);
 | |
| CREATE TEMPORARY TABLE t2 (a int, b int);
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t2
 | |
| t1
 | |
| t2
 | |
| connection slave;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| t2
 | |
| connection master;
 | |
| DROP TABLE t2;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| t2
 | |
| connection slave;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| t2
 | |
| connection master;
 | |
| CREATE TEMPORARY TABLE t2 (a int, b int);
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t2
 | |
| t1
 | |
| t2
 | |
| connection slave;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| t2
 | |
| connection master;
 | |
| DROP TABLE t1,t2;
 | |
| include/show_binlog_events.inc
 | |
| Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 | |
| master-bin.000001	#	Gtid	#	#	GTID #-#-#
 | |
| master-bin.000001	#	Query	#	#	use `test`; CREATE TABLE t1 (a int)
 | |
| master-bin.000001	#	Gtid	#	#	GTID #-#-#
 | |
| master-bin.000001	#	Query	#	#	use `test`; CREATE TABLE t2 (a int)
 | |
| master-bin.000001	#	Gtid	#	#	GTID #-#-#
 | |
| master-bin.000001	#	Query	#	#	use `test`; DROP TABLE `t1` /* generated by server */
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t2
 | |
| connection slave;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t2
 | |
| include/rpl_end.inc
 |