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
|
|
|
|
#
|
2018-03-09 13:05:35 +01:00
|
|
|
source ./main/mysql_delimiter_source.sql
|
2006-11-22 03:10:02 +01:00
|
|
|
delimiter ; # Reset delimiter
|
|
|
|
|
|
|
|
#
|
|
|
|
# Bug #19799: delimiter command not working correctly when sourcing a sql file
|
|
|
|
# with Windows style line endings.
|
|
|
|
#
|
2018-03-09 13:05:35 +01:00
|
|
|
source ./main/mysql_delimiter_19799.sql
|
2006-11-22 07:27:06 +01:00
|
|
|
use test//
|
|
|
|
show tables//
|
2006-11-22 03:10:02 +01:00
|
|
|
delimiter ; # Reset delimiter
|
2008-06-24 16:32:06 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Bug #36244: MySQL CLI doesn't recognize standalone -- as comment
|
|
|
|
# before DELIMITER statement
|
|
|
|
#
|
|
|
|
--
|
|
|
|
DELIMITER ;
|