mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	Use open_normal_and_derived_tables instead of open_and_lock_tables when reading metadata for a table. Add two test cases, one for "USE database" and one for "SHOW COLUMNS FROM table"
		
			
				
	
	
		
			57 lines
		
	
	
		
			599 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			599 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
drop table if exists t1;
 | 
						|
create table t1(a int);
 | 
						|
insert into t1 values(1);
 | 
						|
 | 
						|
Test default delimiter ;
 | 
						|
a
 | 
						|
1
 | 
						|
 | 
						|
Test delimiter without arg
 | 
						|
 | 
						|
Test delimiter :
 | 
						|
a
 | 
						|
1
 | 
						|
 | 
						|
Test delimiter :
 | 
						|
a
 | 
						|
1
 | 
						|
 | 
						|
Test delimiter :;
 | 
						|
a
 | 
						|
1
 | 
						|
 | 
						|
Test delimiter //
 | 
						|
a
 | 
						|
1
 | 
						|
 | 
						|
Test delimiter MySQL
 | 
						|
a
 | 
						|
1
 | 
						|
 | 
						|
Test delimiter delimiter
 | 
						|
a
 | 
						|
1
 | 
						|
 | 
						|
Test delimiter : from command line
 | 
						|
a
 | 
						|
1
 | 
						|
 | 
						|
Test delimiter :; from command line
 | 
						|
a
 | 
						|
1
 | 
						|
 | 
						|
Test 'go' command(vertical output) G
 | 
						|
*************************** 1. row ***************************
 | 
						|
a: 1
 | 
						|
 | 
						|
Test  'go' command g
 | 
						|
a
 | 
						|
1
 | 
						|
drop table t1;
 | 
						|
create table t1(a int);
 | 
						|
lock tables t1 write;
 | 
						|
database()
 | 
						|
test
 | 
						|
unlock tables;
 | 
						|
drop table t1;
 |