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

Function mysql_test_parse_for_slave

sql/sql_parse.cc:8002–8021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8000*/
8001
8002bool 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

Callers 1

Calls 8

lex_startFunction · 0.85
parse_sqlFunction · 0.85
all_tables_not_okFunction · 0.85
first_select_lexMethod · 0.80
initMethod · 0.45
end_statementMethod · 0.45
cleanup_after_queryMethod · 0.45

Tested by

no test coverage detected