| 8000 | */ |
| 8001 | |
| 8002 | bool mysql_test_parse_for_slave(THD *thd, char *rawbuf, uint length) |
| 8003 | { |
| 8004 | LEX *lex= thd->lex; |
| 8005 | bool error= 0; |
| 8006 | DBUG_ENTER("mysql_test_parse_for_slave"); |
| 8007 | |
| 8008 | Parser_state parser_state; |
| 8009 | if (likely(!(error= parser_state.init(thd, rawbuf, length)))) |
| 8010 | { |
| 8011 | lex_start(thd); |
| 8012 | thd->reset_for_next_command(); |
| 8013 | |
| 8014 | if (!parse_sql(thd, & parser_state, NULL, true) && |
| 8015 | all_tables_not_ok(thd, lex->first_select_lex()->table_list.first)) |
| 8016 | error= 1; /* Ignore question */ |
| 8017 | thd->end_statement(); |
| 8018 | } |
| 8019 | thd->cleanup_after_query(); |
| 8020 | DBUG_RETURN(error); |
| 8021 | } |
| 8022 | #endif |
| 8023 | |
| 8024 |
no test coverage detected