mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
METR-41529
This commit is contained in:
parent
e42a26a585
commit
5a884da13c
@ -327,6 +327,7 @@ static void parseComplexEscapeSequence(Vector & s, ReadBuffer & buf)
|
|||||||
&& decoded_char != '"'
|
&& decoded_char != '"'
|
||||||
&& decoded_char != '`' /// MySQL style identifiers
|
&& decoded_char != '`' /// MySQL style identifiers
|
||||||
&& decoded_char != '/' /// JavaScript in HTML
|
&& decoded_char != '/' /// JavaScript in HTML
|
||||||
|
&& decoded_char != '=' /// Yandex's TSKV
|
||||||
&& !isControlASCII(decoded_char))
|
&& !isControlASCII(decoded_char))
|
||||||
{
|
{
|
||||||
s.push_back('\\');
|
s.push_back('\\');
|
||||||
|
0
tests/queries/0_stateless/01946_test.reference
Normal file
0
tests/queries/0_stateless/01946_test.reference
Normal file
1
tests/queries/0_stateless/01946_tskv.reference
Normal file
1
tests/queries/0_stateless/01946_tskv.reference
Normal file
@ -0,0 +1 @@
|
|||||||
|
can contain = symbol
|
15
tests/queries/0_stateless/01946_tskv.sh
Executable file
15
tests/queries/0_stateless/01946_tskv.sh
Executable 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";
|
Loading…
Reference in New Issue
Block a user