ClickHouse/dbms/tests/queries/0_stateless/00534_client_ignore_error.sh
proller 9b8972b4c8 Add bad queries from #1563 (#1653)
* cmake fix

* load shell_config.sh

* env bash

* fix

* use $CLICKHOUSE_CLIENT

* fix

* curl 1

* curl2

* curl3

* fix

* fix

* fix

* fix

* ExtractFromConfig --try

* fix

* fix

* Add symlinks to package

* fix bundle

* fix

* fix

* fix package

* clickhouse-test --order option

* client --ignore-error option (useful with --multiquery)

* add bad queries from @filimonov

* More queries

* --ignore_error via lexer

* fix

* rename
2017-12-22 21:29:03 +03:00

11 lines
418 B
Bash
Executable File

#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh
echo "SELECT 1; SELECT 2; SELECT CAST(); SELECT ';'; SELECT 3;SELECT CAST();SELECT 4;" | $CLICKHOUSE_CLIENT -n --ignore-error 2>/dev/null
echo "SELECT CAST();" | $CLICKHOUSE_CLIENT -n --ignore-error 2>/dev/null
echo "SELECT 5;" | $CLICKHOUSE_CLIENT -n --ignore-error
#$CLICKHOUSE_CLIENT -q "SELECT 'Still alive'"