| 192 | |
| 193 | |
| 194 | std::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 | |
| 209 | std::string getUnmatchedParenthesesErrorMessage( |
no test coverage detected