ClickHouse/tests/queries/0_stateless/01922_client_param.sh

11 lines
384 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2021-09-12 12:35:27 +00:00
# Tags: no-fasttest
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