tests fixed

This commit is contained in:
Mikhail Korotov 2020-01-31 18:06:31 +03:00
parent 182b2a626c
commit 757247cbd5
2 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,6 @@
URDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh
${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test_01073_crlf_in_output_csv_format;"
@ -11,14 +13,11 @@ else
echo "WA"
fi
${CLICKHOUSE_CLIENT} --query "SET output_format_csv_crlf_end_of_line = 1;"
if [[ `${CLICKHOUSE_CLIENT} --output_format_csv_crlf_end_of_line=1 --query "SELECT * FROM test_01073_crlf_in_output_csv_format FORMAT CSV;"`="1,\"hello\"\r\n2,\"world\"\r\n" ]]; then
echo "OK"
else
echo "WA"
fi
${CLICKHOUSE_CLIENT} --query "SET output_format_csv_crlf_end_of_line = 0;"
${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test_01073_crlf_in_output_csv_format;"