ClickHouse/tests/queries/0_stateless/01946_tskv.sh
2021-07-21 14:16:05 +03:00

16 lines
508 B
Bash
Executable File

#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS tskv";
$CLICKHOUSE_CLIENT --query="CREATE TABLE tskv (text String) ENGINE = Memory";
# shellcheck disable=SC2028
echo -n 'tskv text=can contain \= symbol
' | $CLICKHOUSE_CLIENT --query="INSERT INTO tskv FORMAT TSKV";
$CLICKHOUSE_CLIENT --query="SELECT * FROM tskv";
$CLICKHOUSE_CLIENT --query="DROP TABLE tskv";