mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
BUG#9879 delimiter command discrepancy (4.1 vs. 5.0, mysql vs. mysqltest)
- 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'
This commit is contained in:
50
mysql-test/r/mysql.result
Normal file
50
mysql-test/r/mysql.result
Normal file
@ -0,0 +1,50 @@
|
||||
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;
|
Reference in New Issue
Block a user