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

Class CSET_STRING

sql/sql_class.h:195–220  ·  view source on GitHub ↗

@class CSET_STRING @brief Character set armed LEX_STRING */

Source from the content-addressed store, hash-verified

193 @brief Character set armed LEX_STRING
194*/
195class CSET_STRING
196{
197private:
198 LEX_STRING string;
199 const CHARSET_INFO *cs;
200public:
201 CSET_STRING() : cs(&my_charset_bin)
202 {
203 string.str= NULL;
204 string.length= 0;
205 }
206 CSET_STRING(char *str_arg, size_t length_arg, const CHARSET_INFO *cs_arg) :
207 cs(cs_arg)
208 {
209 DBUG_ASSERT(cs_arg != NULL);
210 string.str= str_arg;
211 string.length= length_arg;
212 }
213
214 inline char *str() const { return string.str; }
215 inline size_t length() const { return string.length; }
216 const CHARSET_INFO *charset() const { return cs; }
217
218 friend LEX_STRING * thd_query_string (MYSQL_THD thd);
219 friend char **thd_query(MYSQL_THD thd);
220};
221
222
223#define TC_LOG_PAGE_SIZE 8192

Callers 4

set_query_innerMethod · 0.85
reset_query_innerMethod · 0.85
set_queryMethod · 0.85
reset_queryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected