From c7d6d531f51c41274c82640cb189b27b844cc825 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 24 Jun 2020 16:20:39 +0300 Subject: [PATCH] Added a test --- .../0_stateless/01342_query_parameters_alias.reference | 3 +++ tests/queries/0_stateless/01342_query_parameters_alias.sh | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/queries/0_stateless/01342_query_parameters_alias.reference create mode 100755 tests/queries/0_stateless/01342_query_parameters_alias.sh diff --git a/tests/queries/0_stateless/01342_query_parameters_alias.reference b/tests/queries/0_stateless/01342_query_parameters_alias.reference new file mode 100644 index 00000000000..dffa16eaec2 --- /dev/null +++ b/tests/queries/0_stateless/01342_query_parameters_alias.reference @@ -0,0 +1,3 @@ +a +Nullable(Nothing) +\N diff --git a/tests/queries/0_stateless/01342_query_parameters_alias.sh b/tests/queries/0_stateless/01342_query_parameters_alias.sh new file mode 100755 index 00000000000..1f46f6b388e --- /dev/null +++ b/tests/queries/0_stateless/01342_query_parameters_alias.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +. $CURDIR/../shell_config.sh + +$CLICKHOUSE_CLIENT --param_x '\N' --query 'SELECT {x:Nullable(Nothing)} as a' --format TSVWithNamesAndTypes