Skip to content

Commit

Permalink
Chenges by review
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Galizin committed Nov 5, 2024
1 parent bf1fefd commit 86d0c84
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clickhouse/base/wire_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,11 @@ bool WireFormat::SkipString(InputStream& input) {
return false;
}

const std::vector<char> quoted_chars = {'\0', '\b', '\t', '\n', '\'', '\\'};

inline const char* find_quoted_chars(const char* start, const char* end) {
static const char quoted_chars[] = {'\0', '\b', '\t', '\n', '\'', '\\'};
while (start < end) {
char c = *start;
for (unsigned i = 0; i < quoted_chars.size(); i++) {
for (unsigned i = 0; i < sizeof(quoted_chars); i++) {
if (quoted_chars[i] == c) return start;
}
start++;
Expand Down

0 comments on commit 86d0c84

Please sign in to comment.