mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	- Added testcases to test delimiters in 5.0 - In 5.0 it's allowed to have a up to 16 byte string as delimiter, everything after the delimiter token will be treated as the delimiter. It's even allowed to set delimiter to 'delimiter', ':;' or'MySQL'
		
			
				
	
	
		
			51 lines
		
	
	
		
			507 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			507 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;
 |