diff options
author | unknown <msvensson@neptunus.(none)> | 2005-05-17 21:14:01 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2005-05-17 21:14:01 +0200 |
commit | df4d98902a2b0ccd89511221350a1d6072b6deb3 (patch) | |
tree | da921d6542268a5a6d8ad3d68541b5cca8dc31d6 /mysql-test/t/mysql_delimiter.sql | |
parent | edcdc57bff956bccd085de326d200a698919ac5c (diff) | |
download | mariadb-git-df4d98902a2b0ccd89511221350a1d6072b6deb3.tar.gz |
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'
Diffstat (limited to 'mysql-test/t/mysql_delimiter.sql')
-rw-r--r-- | mysql-test/t/mysql_delimiter.sql | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/mysql-test/t/mysql_delimiter.sql b/mysql-test/t/mysql_delimiter.sql new file mode 100644 index 00000000000..4ea481a84e2 --- /dev/null +++ b/mysql-test/t/mysql_delimiter.sql @@ -0,0 +1,48 @@ + +# 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 + + |