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

Method set_query

sql/sql_class.cc:2082–2091  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2080/** Assign a new value to thd->query. */
2081
2082void THD::set_query(const CSET_STRING &string_arg)
2083{
2084 mysql_mutex_lock(&LOCK_thd_data);
2085 set_query_inner(string_arg);
2086 mysql_mutex_unlock(&LOCK_thd_data);
2087
2088#ifdef HAVE_PSI_THREAD_INTERFACE
2089 PSI_THREAD_CALL(set_thread_info)(query(), query_length());
2090#endif
2091}
2092
2093/** Assign a new value to thd->query and thd->query_id. */
2094

Callers 1

alloc_queryFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected