From 47f2764ab8a345aa140fc11cf1a2c573df7241cf Mon Sep 17 00:00:00 2001 From: kssenii Date: Wed, 2 Jun 2021 08:38:43 +0000 Subject: [PATCH] Fix test --- .../0_stateless/01889_postgresql_protocol_null_fields.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/queries/0_stateless/01889_postgresql_protocol_null_fields.sh b/tests/queries/0_stateless/01889_postgresql_protocol_null_fields.sh index a1e559ca731..9d61f7034cf 100755 --- a/tests/queries/0_stateless/01889_postgresql_protocol_null_fields.sh +++ b/tests/queries/0_stateless/01889_postgresql_protocol_null_fields.sh @@ -4,4 +4,9 @@ CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # shellcheck source=../shell_config.sh . "$CUR_DIR"/../shell_config.sh -psql --host localhost --port ${CLICKHOUSE_PORT_POSTGRESQL} default -c "SELECT NULL;" +echo " +DROP USER IF EXISTS postgresql_user; +CREATE USER postgresql_user HOST IP '127.0.0.1' IDENTIFIED WITH no_password; +" | $CLICKHOUSE_CLIENT -n + +psql --host localhost --port ${CLICKHOUSE_PORT_POSTGRESQL} ${CLICKHOUSE_DATABASE} --user postgresql_user -c "SELECT NULL;"