mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	in sourced file properly. (Bug #11523) client/mysql.cc: Rename read_lines() to read_and_execute() and change interface so it is clear when we are reading and processing lines interactively versus in batch mode or from a file being sourced. mysql-test/r/mysql.result: Add results mysql-test/t/mysql_delimiter.sql: Add new test mysql-test/t/mysql_delimiter_source.sql: New BitKeeper file ``mysql-test/t/mysql_delimiter_source.sql''
		
			
				
	
	
		
			61 lines
		
	
	
		
			623 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			623 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
 | 
						|
Tables_in_test
 | 
						|
t1
 | 
						|
t2
 | 
						|
t3
 | 
						|
 | 
						|
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;
 |