Move cases from parser_string_binary_literal to sh

This commit is contained in:
vdimir 2022-12-12 12:43:54 +01:00
parent e88b85178f
commit cdc91da11e
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862
3 changed files with 21 additions and 9 deletions

View File

@ -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 }

View File

@ -0,0 +1,6 @@
Syntax error
Syntax error
Syntax error
Syntax error
Syntax error
Syntax error

View File

@ -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'