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

Method make_lex_string

sql/sql_class.cc:1178–1184  ·  view source on GitHub ↗

Create a LEX_STRING in this connection. @param lex_str pointer to LEX_STRING object to be initialized @param str initializer to be copied into lex_str @param length length of str, in bytes @param allocate_lex_string if TRUE, allocate new LEX_STRING object, instead of using lex_str value @return NULL on failure, or pointer to the LEX_STRING object

Source from the content-addressed store, hash-verified

1176 @return NULL on failure, or pointer to the LEX_STRING object
1177*/
1178LEX_STRING *THD::make_lex_string(LEX_STRING *lex_str,
1179 const char* str, uint length,
1180 bool allocate_lex_string)
1181{
1182 return make_lex_string_root (mem_root, lex_str, str,
1183 length, allocate_lex_string);
1184}
1185
1186
1187/*

Callers 1

thd_make_lex_stringFunction · 0.80

Calls 1

make_lex_string_rootFunction · 0.85

Tested by

no test coverage detected