mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Move cases from parser_string_binary_literal to sh
This commit is contained in:
parent
e88b85178f
commit
cdc91da11e
@ -27,12 +27,3 @@ select x'' == b'';
|
||||
select x'0' == b'0';
|
||||
select X'' == X'';
|
||||
select X'0' == X'0';
|
||||
|
||||
SELECT b'3'; -- { clientError SYNTAX_ERROR }
|
||||
SELECT x'k'; -- { clientError SYNTAX_ERROR }
|
||||
|
||||
SELECT b'1; -- { clientError SYNTAX_ERROR }
|
||||
SELECT x'a; -- { clientError SYNTAX_ERROR }
|
||||
|
||||
SELECT b"0"; -- { clientError SYNTAX_ERROR }
|
||||
SELECT x"0"; -- { clientError SYNTAX_ERROR }
|
||||
|
@ -0,0 +1,6 @@
|
||||
Syntax error
|
||||
Syntax error
|
||||
Syntax error
|
||||
Syntax error
|
||||
Syntax error
|
||||
Syntax error
|
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CURDIR"/../shell_config.sh
|
||||
|
||||
|
||||
$CLICKHOUSE_CLIENT --query="SELECT b '0';" 2>&1 | grep -o 'Syntax error'
|
||||
$CLICKHOUSE_CLIENT --query="SELECT x 'a'" 2>&1 | grep -o 'Syntax error'
|
||||
|
||||
$CLICKHOUSE_CLIENT --query="SELECT b'3';" 2>&1 | grep -o 'Syntax error'
|
||||
$CLICKHOUSE_CLIENT --query="SELECT x'k'" 2>&1 | grep -o 'Syntax error'
|
||||
|
||||
$CLICKHOUSE_CLIENT --query="SELECT b'1" 2>&1 | grep -o 'Syntax error'
|
||||
$CLICKHOUSE_CLIENT --query="SELECT x'a" 2>&1 | grep -o 'Syntax error'
|
Loading…
Reference in New Issue
Block a user