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

Method set_query_and_id

sql/sql_class.cc:2095–2103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2093/** Assign a new value to thd->query and thd->query_id. */
2094
2095void THD::set_query_and_id(char *query_arg, uint32 query_length_arg,
2096 const CHARSET_INFO *cs,
2097 query_id_t new_query_id)
2098{
2099 mysql_mutex_lock(&LOCK_thd_data);
2100 set_query_inner(query_arg, query_length_arg, cs);
2101 query_id= new_query_id;
2102 mysql_mutex_unlock(&LOCK_thd_data);
2103}
2104
2105/** Assign a new value to thd->query_id. */
2106

Callers 1

dispatch_commandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected