Fix 01176_mysql_client_interactive and work with mariadb client

This commit is contained in:
Raúl Marín 2021-08-06 18:03:27 +02:00
parent da988100d6
commit b1ff4ca81a
2 changed files with 6 additions and 3 deletions

View File

@ -314,6 +314,10 @@ OutputFormatPtr FormatFactory::getOutputFormatParallelIfPossible(
auto format_settings = _format_settings ? *_format_settings : getFormatSettings(context);
/// If we're handling MySQL protocol connection right now then MySQLWire is only allowed output format.
if (format_settings.mysql_wire.sequence_id && (name != "MySQLWire"))
throw Exception(ErrorCodes::UNSUPPORTED_METHOD, "MySQL protocol does not support custom output formats");
const Settings & settings = context->getSettingsRef();
if (settings.output_format_parallel_formatting && getCreators(name).supports_parallel_formatting

View File

@ -12,7 +12,7 @@ expect_after {
set basedir [file dirname $argv0]
spawn bash -c "source $basedir/../shell_config.sh ; \$MYSQL_CLIENT_BINARY \$MYSQL_CLIENT_OPT"
expect "mysql> "
expect -nocase -re "mysql.*> "
send -- "USE system;\r"
expect "Database changed"
@ -41,8 +41,7 @@ expect "+---------------+-------------+"
expect "| 10 | 45 |"
expect "+---------------+-------------+"
expect "1 row in set"
expect "Read 10 rows, 80.00 B"
expect "mysql> "
expect -nocase -re "mysql.*> "
send -- "quit;\r"
expect eof