MCPcopy Create free account
hub / github.com/MariaDB/server / parse_token_list

Method parse_token_list

sql/opt_hints_parser.cc:274–290  ·  view source on GitHub ↗

This method is for debug purposes

Source from the content-addressed store, hash-verified

272
273// This method is for debug purposes
274bool Parser::parse_token_list(THD *thd)
275{
276 for ( ; ; m_look_ahead_token= get_token(m_cs))
277 {
278 char tmp[200];
279 my_snprintf(tmp, sizeof(tmp), "TOKEN: %d %.*s",
280 (int) m_look_ahead_token.id(),
281 (int) m_look_ahead_token.length,
282 m_look_ahead_token.str);
283 push_warning(thd, Sql_condition::WARN_LEVEL_WARN,
284 ER_UNKNOWN_ERROR, tmp);
285 if (m_look_ahead_token.id() == TokenID::tNULL ||
286 m_look_ahead_token.id() == TokenID::tEOF)
287 break;
288 }
289 return true; // Success
290}
291
292void Parser::push_warning_syntax_error(THD *thd, uint start_lineno)
293{

Callers

nothing calls this directly

Calls 4

get_tokenFunction · 0.85
my_snprintfFunction · 0.85
push_warningFunction · 0.85
idMethod · 0.45

Tested by

no test coverage detected