mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Fix 01176_mysql_client_interactive and work with mariadb client
This commit is contained in:
parent
da988100d6
commit
b1ff4ca81a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user