| 258 | } |
| 259 | |
| 260 | IntVal StringFunctions::Length(FunctionContext* context, const StringVal& str) { |
| 261 | if (str.is_null) return IntVal::null(); |
| 262 | if (context->impl()->GetConstFnAttr(FunctionContextImpl::UTF8_MODE)) { |
| 263 | return Utf8Length(context, str); |
| 264 | } |
| 265 | return IntVal(str.len); |
| 266 | } |
| 267 | IntVal StringFunctions::Bytes(FunctionContext* context,const StringVal& str){ |
| 268 | if(str.is_null) return IntVal::null(); |
| 269 | return IntVal(str.len); |
nothing calls this directly
no test coverage detected