mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
df4d98902a
- 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'
48 lines
1 KiB
SQL
48 lines
1 KiB
SQL
|
|
# Test default delimiter ;
|
|
select "Test default delimiter ;" as " ";
|
|
select * from t1;
|
|
|
|
# Test delimiter without argument
|
|
select "Test delimiter without arg" as " ";
|
|
# Nothing should be displayed, error is returned
|
|
delimiter
|
|
delimiter ; # Reset delimiter
|
|
|
|
# Test delimiter :
|
|
select "Test delimiter :" as " ";
|
|
delimiter :
|
|
select * from t1:
|
|
delimiter ; # Reset delimiter
|
|
|
|
# Test delimiter ':'
|
|
select "Test delimiter :" as " ";
|
|
delimiter ':'
|
|
select * from t1:
|
|
delimiter ; # Reset delimiter
|
|
|
|
# Test delimiter :;
|
|
select "Test delimiter :;" as " ";
|
|
delimiter :;
|
|
select * from t1 :;
|
|
delimiter ; # Reset delimiter
|
|
|
|
## Test delimiter //
|
|
select "Test delimiter //" as " ";
|
|
delimiter //
|
|
select * from t1//
|
|
delimiter ; # Reset delimiter
|
|
|
|
# Test delimiter 'MySQL'
|
|
select "Test delimiter MySQL" as " ";
|
|
delimiter 'MySQL'
|
|
select * from t1MySQL
|
|
delimiter ; # Reset delimiter
|
|
|
|
# Test delimiter 'delimiter'(should be allowed according to the code)
|
|
select "Test delimiter delimiter" as " ";
|
|
delimiter delimiter
|
|
select * from t1 delimiter
|
|
delimiter ; # Reset delimiter
|
|
|
|
|