2005-05-17 21:14:01 +02:00
|
|
|
#
|
|
|
|
# Testing the MySQL command line client(mysql)
|
|
|
|
#
|
|
|
|
|
|
|
|
--disable_warnings
|
|
|
|
drop table if exists t1;
|
|
|
|
--enable_warnings
|
|
|
|
|
|
|
|
#
|
|
|
|
# Test the "delimiter" functionality
|
|
|
|
# Bug#9879
|
|
|
|
#
|
|
|
|
create table t1(a int);
|
|
|
|
insert into t1 values(1);
|
|
|
|
|
|
|
|
# Test delimiters
|
2005-10-06 16:54:43 +02:00
|
|
|
--exec $MYSQL test 2>&1 < "./t/mysql_delimiter.sql"
|
2005-05-17 21:14:01 +02:00
|
|
|
|
|
|
|
--disable_query_log
|
|
|
|
# Test delimiter : supplied on the command line
|
|
|
|
select "Test delimiter : from command line" as " ";
|
2005-09-24 04:11:51 +02:00
|
|
|
--exec $MYSQL test --delimiter=":" -e "select * from t1:"
|
2005-05-17 21:14:01 +02:00
|
|
|
# Test delimiter :; supplied on the command line
|
|
|
|
select "Test delimiter :; from command line" as " ";
|
2005-09-24 04:11:51 +02:00
|
|
|
--exec $MYSQL test --delimiter=":;" -e "select * from t1:;"
|
2005-05-17 21:14:01 +02:00
|
|
|
# Test 'go' command (vertical output) \G
|
|
|
|
select "Test 'go' command(vertical output) \G" as " ";
|
2005-09-24 04:11:51 +02:00
|
|
|
--exec $MYSQL test -e "select * from t1\G"
|
2005-05-17 21:14:01 +02:00
|
|
|
# Test 'go' command \g
|
|
|
|
select "Test 'go' command \g" as " ";
|
2005-09-24 04:11:51 +02:00
|
|
|
--exec $MYSQL test -e "select * from t1\g"
|
2005-05-17 21:14:01 +02:00
|
|
|
--enable_query_log
|
2005-06-03 15:29:05 +02:00
|
|
|
drop table t1;
|
2005-05-17 21:14:01 +02:00
|
|
|
|
2005-06-03 15:29:05 +02:00
|
|
|
#
|
|
|
|
# BUG9998 - MySQL client hangs on USE "database"
|
|
|
|
#
|
|
|
|
create table t1(a int);
|
|
|
|
lock tables t1 write;
|
2005-09-24 04:11:51 +02:00
|
|
|
--exec $MYSQL -e "use test; select database();"
|
2005-06-03 15:29:05 +02:00
|
|
|
unlock tables;
|
2005-05-17 21:14:01 +02:00
|
|
|
drop table t1;
|
2005-06-03 15:29:05 +02:00
|
|
|
|