ClickHouse/tests/queries/0_stateless/02315_readonly_create_function.sh

9 lines
270 B
Bash
Raw Normal View History

2022-06-01 10:57:19 +00:00
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
2022-06-01 12:52:01 +00:00
$CLICKHOUSE_CLIENT --readonly 1 --query "CREATE FUNCTION test_function AS (x) -> x + 1;" 2>&1 | grep -q "Code: 164"
echo $?;