| 312 | } |
| 313 | |
| 314 | StringVal StringFunctions::Upper(FunctionContext* context, const StringVal& str) { |
| 315 | if (str.is_null) return StringVal::null(); |
| 316 | if (context->impl()->GetConstFnAttr(FunctionContextImpl::UTF8_MODE)) { |
| 317 | return UpperUtf8(context, str); |
| 318 | } |
| 319 | return UpperAscii(context, str); |
| 320 | } |
| 321 | |
| 322 | StringVal StringFunctions::UpperAscii(FunctionContext* context, const StringVal& str) { |
| 323 | // Not in UTF-8 mode, only English alphabetic characters will be converted. |
nothing calls this directly
no test coverage detected