MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getLexicalErrorMessage

Function getLexicalErrorMessage

src/Parsers/parseQuery.cpp:194–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192
193
194std::string getLexicalErrorMessage(
195 const char * begin,
196 const char * end,
197 Token last_token,
198 bool hilite,
199 const std::string & query_description)
200{
201 WriteBufferFromOwnString out;
202 out << getErrorTokenDescription(last_token.type) << ": ";
203 writeCommonErrorMessage(out, begin, end, last_token, query_description);
204 writeQueryAroundTheError(out, begin, end, hilite, &last_token, 1);
205 return out.str();
206}
207
208
209std::string getUnmatchedParenthesesErrorMessage(

Callers 1

tryParseQueryFunction · 0.70

Calls 4

getErrorTokenDescriptionFunction · 0.85
writeCommonErrorMessageFunction · 0.70
writeQueryAroundTheErrorFunction · 0.70
strMethod · 0.45

Tested by

no test coverage detected