mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
use single-character find for bad alphabet
This commit is contained in:
parent
62a1e1c0cd
commit
9599c1f05c
@ -117,7 +117,7 @@ public:
|
||||
if (auto alpha_col = checkAndGetColumnConst<ColumnString>(alphabetcolumn.get()))
|
||||
{
|
||||
alphabet = alpha_col->getValue<String>();
|
||||
if (alphabet.find("\0") != std::string::npos)
|
||||
if (alphabet.find('\0') != std::string::npos)
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Custom alphabet must not contain null character");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user