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

Method set_query

sql/sql_class.h:2755–2759  ·  view source on GitHub ↗

Assign a new value to thd->query and thd->query_id and mysys_var. Protected with LOCK_thd_data mutex. */

Source from the content-addressed store, hash-verified

2753 Protected with LOCK_thd_data mutex.
2754 */
2755 void set_query(char *query_arg, uint32 query_length_arg,
2756 const CHARSET_INFO *cs_arg)
2757 {
2758 set_query(CSET_STRING(query_arg, query_length_arg, cs_arg));
2759 }
2760 void set_query(char *query_arg, uint32 query_length_arg) /*Mutex protected*/
2761 {
2762 set_query(CSET_STRING(query_arg, query_length_arg, charset()));

Callers

nothing calls this directly

Calls 1

CSET_STRINGClass · 0.85

Tested by

no test coverage detected