1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-30327 Client crashes in print_last_query_cost

Fixed by calling init_pager() before tee_fprintf()
This commit is contained in:
Monty
2023-01-05 15:43:14 +02:00
parent 8d4bccf338
commit 1a13dbff01
3 changed files with 16 additions and 1 deletions

View File

@ -709,10 +709,19 @@ drop table t1;
--echo #
--exec $MYSQL -NHe "select 1 as a"
#
# Test obsolete option --enable-cleartext-plugin
# This should proceed with a warning
#
--echo
--exec $MYSQL test --enable-cleartext-plugin -e "select 1"
--echo #
--echo # MDEV-30327 Client crashes in print_last_query_cost
--echo #
--disable_query_log
--disable_result_log
--exec $MYSQL --show-query-costs --port=$MASTER_MYPORT -e "show tables in mysql like 'foo'"
--enable_result_log
--enable_query_log