mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 11:04:10 +00:00
9b8972b4c8
* 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
12 lines
559 B
Bash
Executable File
12 lines
559 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
. $CURDIR/../shell_config.sh
|
|
|
|
# Server should not crash on any function trash calls
|
|
|
|
# todo: maybe add more strange usages
|
|
perl -E "say \$_ for map {chomp; (qq{SELECT \$_;}, qq{SELECT \$_();}, qq{SELECT \$_(NULL);}, qq{SELECT \$_([]);}, qq{SELECT \$_([NULL]);}, qq{SELECT \$_(-1);}, qq{SELECT \$_('');},)} qx{$CLICKHOUSE_CLIENT -q 'SELECT name FROM system.functions ORDER BY name;'}" | $CLICKHOUSE_CLIENT -n --ignore-error >/dev/null 2>&1
|
|
|
|
$CLICKHOUSE_CLIENT -q "SELECT 'Still alive'"
|