mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 19:45:11 +00:00
validate pair delimiters does not contain escape character
This commit is contained in:
parent
f9af3995d3
commit
c677be1ccd
@ -25,7 +25,9 @@ Configuration ConfigurationFactory::createWithoutEscaping(char key_value_delimit
|
||||
|
||||
Configuration ConfigurationFactory::createWithEscaping(char key_value_delimiter, char quoting_character, std::vector<char> pair_delimiters)
|
||||
{
|
||||
if (key_value_delimiter == EscapedCharacterReader::ESCAPE_CHARACTER || quoting_character == EscapedCharacterReader::ESCAPE_CHARACTER)
|
||||
if (key_value_delimiter == EscapedCharacterReader::ESCAPE_CHARACTER
|
||||
|| quoting_character == EscapedCharacterReader::ESCAPE_CHARACTER
|
||||
|| std::find(pair_delimiters.begin(), pair_delimiters.end(), EscapedCharacterReader::ESCAPE_CHARACTER) != pair_delimiters.end())
|
||||
{
|
||||
throw Exception(
|
||||
ErrorCodes::BAD_ARGUMENTS,
|
||||
|
Loading…
Reference in New Issue
Block a user