mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
b3d1bfc67a
Before this patch: $ clickhouse-client --database foo -q 'select 1' Code: 32. DB::Exception: Attempt to read after eof: while receiving packet from localhost:9000. (ATTEMPT_TO_READ_AFTER_EOF) After: $ clickhouse-client --database foo -q 'select 1' Received exception from server (version 21.11.1): Code: 81. DB::Exception: Received from localhost:9000. DB::Exception: Database foo doesn't exist. (UNKNOWN_DATABASE) (query: select 1) Fixes: #26864 (cc @vitlibar)
10 lines
256 B
Bash
Executable File
10 lines
256 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CLICKHOUSE_DATABASE=no_such_database_could_exist
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
# shellcheck source=../shell_config.sh
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
$CLICKHOUSE_CLIENT -q "SELECT 1" |& grep -q UNKNOWN_DATABASE
|