2005-05-17 21:14:01 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2005-08-09 21:17:28 +02:00
|
|
|
#
|
|
|
|
# Bug #11523: \d works differently than delimiter
|
|
|
|
#
|
|
|
|
source t/mysql_delimiter_source.sql
|