This method is for debug purposes
| 272 | |
| 273 | // This method is for debug purposes |
| 274 | bool 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 | |
| 292 | void Parser::push_warning_syntax_error(THD *thd, uint start_lineno) |
| 293 | { |
nothing calls this directly
no test coverage detected