mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
6b27acbdf4
Now it supports queries returning several results (particularly important with the SP) include/mysql.h: embedded_query_result structure added libmysql/libmysql.c: embedded-server related fixes libmysqld/emb_qcache.cc: multiple-result support added libmysqld/embedded_priv.h: embedded_query_result struct implemented libmysqld/lib_sql.cc: multiple-result support added libmysqld/libmysqld.c: small fixes mysql-test/t/backup.test: test fixed mysql-test/t/binlog_stm_binlog.test: test fixed mysql-test/t/binlog_stm_blackhole.test: test fixed mysql-test/t/binlog_stm_ctype_cp932.test: test fixed mysql-test/t/compress.test: test fixed mysql-test/t/delayed.test: test fixed mysql-test/t/federated.test: test fixed mysql-test/t/federated_archive.test: test fixed mysql-test/t/federated_bug_13118.test: test fixed mysql-test/t/federated_transactions.test: test fixed mysql-test/t/flush_table.test: test fixed mysql-test/t/handler.test: test fixed mysql-test/t/init_connect.test: test fixed mysql-test/t/innodb.test: test fixed mysql-test/t/mysql.test: test fixed mysql-test/t/mysql_client_test.test: test fixed mysql-test/t/mysqltest.test: test fixed mysql-test/t/query_cache.test: test fixed mysql-test/t/query_cache_notembedded.test: test fixed mysql-test/t/read_only.test: test fixed mysql-test/t/skip_grants.test: test fixed mysql-test/t/sp-destruct.test: test fixed mysql-test/t/sp-error.test: test fixed mysql-test/t/sp-threads.test: test fixed mysql-test/t/sp.test: test fixed mysql-test/t/view.test: test fixed mysql-test/t/wait_timeout.test: test fixed sql-common/client.c: small fixes sql/mysqld.cc: embedded-server related fix sql/protocol.cc: embedded-server related fix sql/protocol.h: embedded-server related fix sql/sql_class.cc: embedded-server related fix sql/sql_class.h: embedded-server related fix sql/sql_cursor.cc: embedded-server related fix sql/sql_parse.cc: embedded-server related fix sql/sql_prepare.cc: embedded-server related fix
45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
# This test should work in embedded server after we fix mysqltest
|
|
-- source include/not_embedded.inc
|
|
#
|
|
# 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
|
|
--exec $MYSQL test 2>&1 < "./t/mysql_delimiter.sql"
|
|
|
|
--disable_query_log
|
|
# Test delimiter : supplied on the command line
|
|
select "Test delimiter : from command line" as " ";
|
|
--exec $MYSQL test --delimiter=":" -e "select * from t1:"
|
|
# Test delimiter :; supplied on the command line
|
|
select "Test delimiter :; from command line" as " ";
|
|
--exec $MYSQL test --delimiter=":;" -e "select * from t1:;"
|
|
# Test 'go' command (vertical output) \G
|
|
select "Test 'go' command(vertical output) \G" as " ";
|
|
--exec $MYSQL test -e "select * from t1\G"
|
|
# Test 'go' command \g
|
|
select "Test 'go' command \g" as " ";
|
|
--exec $MYSQL test -e "select * from t1\g"
|
|
--enable_query_log
|
|
drop table t1;
|
|
|
|
#
|
|
# BUG9998 - MySQL client hangs on USE "database"
|
|
#
|
|
create table t1(a int);
|
|
lock tables t1 write;
|
|
--exec $MYSQL -e "use test; select database();"
|
|
unlock tables;
|
|
drop table t1;
|
|
|