ClickHouse/tests/queries/0_stateless/00564_enum_order.sh
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

11 lines
495 B
Bash
Executable File

#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh
$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL" -d "DROP TABLE IF EXISTS enum";
$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL" -d "CREATE TABLE enum (x Enum8('a' = 1, 'bcdefghijklmno' = 0)) ENGINE = Memory";
$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL" -d "INSERT INTO enum VALUES ('a')";
$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL" -d "SELECT * FROM enum";
$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL" -d "DROP TABLE enum";