mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
d2c97cdee0
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''
51 lines
1.1 KiB
SQL
51 lines
1.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
|
|
|
|
#
|
|
# Bug #11523: \d works differently than delimiter
|
|
#
|
|
source t/mysql_delimiter_source.sql
|