METR-41529

This commit is contained in:
Evgeniy Gatov 2021-07-14 23:05:57 +03:00
parent e42a26a585
commit 5a884da13c
4 changed files with 17 additions and 0 deletions

View File

@ -327,6 +327,7 @@ static void parseComplexEscapeSequence(Vector & s, ReadBuffer & buf)
&& decoded_char != '"'
&& decoded_char != '`' /// MySQL style identifiers
&& decoded_char != '/' /// JavaScript in HTML
&& decoded_char != '=' /// Yandex's TSKV
&& !isControlASCII(decoded_char))
{
s.push_back('\\');

View File

@ -0,0 +1 @@
can contain = symbol

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="DROP TABLE IF EXISTS tskv";
$CLICKHOUSE_CLIENT --query="CREATE TABLE tskv (text String) ENGINE = Memory";
# shellcheck disable=SC2028
echo -n 'tskv text=can contain \= symbol
' | $CLICKHOUSE_CLIENT --query="INSERT INTO tskv FORMAT TSKV";
$CLICKHOUSE_CLIENT --query="SELECT * FROM tskv";
$CLICKHOUSE_CLIENT --query="DROP TABLE tskv";