MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / sql_parser

Function sql_parser

sql/mysqld.cc:2020–2027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2018}
2019
2020LEX * sql_parser(char *query, char *default_db) {
2021 thd->reset_db(default_db, strlen(default_db));
2022 if (dispatch_command(COM_QUERY, thd, query, (uint) strlen(query)))
2023 {
2024 return NULL;
2025 }
2026 return thd->lex;
2027}
2028
2029int sql_parser_cleanup()
2030{

Callers 1

mainFunction · 0.85

Calls 2

dispatch_commandFunction · 0.85
reset_dbMethod · 0.80

Tested by

no test coverage detected