mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Add a test for clickhouse-client --param w/o value
This commit is contained in:
parent
7739fcc295
commit
f9b3a8770c
2
tests/queries/0_stateless/01922_client_param.reference
Normal file
2
tests/queries/0_stateless/01922_client_param.reference
Normal file
@ -0,0 +1,2 @@
|
||||
foo
|
||||
foo
|
9
tests/queries/0_stateless/01922_client_param.sh
Executable file
9
tests/queries/0_stateless/01922_client_param.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CUR_DIR"/../shell_config.sh
|
||||
|
||||
$CLICKHOUSE_CLIENT --param_foo |& grep -q -x 'Code: 36. DB::Exception: Parameter requires value'
|
||||
$CLICKHOUSE_CLIENT --param_foo foo -q 'select {foo:String}'
|
||||
$CLICKHOUSE_CLIENT -q 'select {foo:String}' --param_foo foo
|
Loading…
Reference in New Issue
Block a user