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

Function check_string_byte_length

sql/sql_parse.cc:2340–2349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2338*/
2339
2340bool check_string_byte_length(LEX_STRING *str, const char *err_msg,
2341 uint max_byte_length)
2342{
2343 if (str->length <= max_byte_length)
2344 return FALSE;
2345
2346 my_error(ER_WRONG_STRING_LENGTH, MYF(0), str->str, err_msg, max_byte_length);
2347
2348 return TRUE;
2349}
2350
2351
2352/*

Callers 1

check_host_nameFunction · 0.85

Calls 1

my_errorFunction · 0.85

Tested by

no test coverage detected