Fix tests

This commit is contained in:
hcz 2020-08-24 10:51:04 +08:00
parent 559242503b
commit 7c02047060
2 changed files with 6 additions and 6 deletions

View File

@ -1,3 +1,3 @@
Code: 57
Code: 62
Code: 62
OK
OK
OK

View File

@ -5,6 +5,6 @@ set -e
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. "$CUR_DIR"/../shell_config.sh
${CLICKHOUSE_CLIENT} --query "CREATE TABLE system.columns AS numbers(10);" 2>&1 | grep -o "Code: 57"
${CLICKHOUSE_CLIENT} --query "CREATE TABLE system.columns engine=Memory AS numbers(10);" 2>&1 | grep -o "Code: 62"
${CLICKHOUSE_CLIENT} --query "CREATE TABLE system.columns AS numbers(10) Engine=Memory;" 2>&1 | grep -o "Code: 62"
${CLICKHOUSE_CLIENT} --query "CREATE TABLE system.columns AS numbers(10);" 2>&1 | grep -F "Code: 57" > /dev/null && echo 'OK' || echo 'FAIL'
${CLICKHOUSE_CLIENT} --query "CREATE TABLE system.columns engine=Memory AS numbers(10);" 2>&1 | grep -F "Code: 62" > /dev/null && echo 'OK' || echo 'FAIL'
${CLICKHOUSE_CLIENT} --query "CREATE TABLE system.columns AS numbers(10) engine=Memory;" 2>&1 | grep -F "Code: 62" > /dev/null && echo 'OK' || echo 'FAIL'