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

Function finish_with_error

sqladvisor/main.cc:396–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396void finish_with_error(MYSQL *con) {
397 if (options.verbose)
398 sql_print_information("第%d步:SQLAdvisor结束!错误日志:%s \n", STEP_CNT++,
399 mysql_error(con));
400 if (con != NULL)
401 mysql_close(con);
402 exit(-1);
403}
404
405POSSBILE_INDEX * find_best_index(char *tablename, char *dbname,
406 const char *field_name) {

Callers 6

find_best_indexFunction · 0.85
is_this_tableFunction · 0.85
get_key_nameFunction · 0.85
isPrimaryFunction · 0.85

Calls 3

sql_print_informationFunction · 0.85
mysql_errorFunction · 0.85
mysql_closeFunction · 0.85

Tested by

no test coverage detected