MCPcopy Create free account
hub / github.com/MariaDB/server / func_upper

Function func_upper

client/mysqltest.cc:6720–6729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6718*/
6719
6720void func_upper(Expression_value args[], int count, Expression_value *result)
6721{
6722 if (count != 1)
6723 die("upper() expects 1 argument, got %d", count);
6724
6725 My_string result_str;
6726 result_str.copy_caseup(charset_info, args[0].to_string().to_lex_cstring());
6727
6728 result->set_string(result_str.ptr(), result_str.length());
6729}
6730
6731
6732/**

Callers 1

Calls 7

copy_caseupMethod · 0.80
set_stringMethod · 0.80
dieFunction · 0.70
to_lex_cstringMethod · 0.45
to_stringMethod · 0.45
ptrMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected