2018-02-05 18:06:16 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
. $CURDIR/../shell_config.sh
|
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL_PARAMS" -d "DROP TABLE IF EXISTS enum";
|
|
|
|
$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL_PARAMS" -d "CREATE TABLE enum (x Enum8('a' = 1, 'bcdefghijklmno' = 0)) ENGINE = Memory";
|
|
|
|
$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL_PARAMS" -d "INSERT INTO enum VALUES ('a')";
|
|
|
|
$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL_PARAMS" -d "SELECT * FROM enum";
|
|
|
|
$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL_PARAMS" -d "DROP TABLE enum";
|