| 147 | } |
| 148 | |
| 149 | StringVal UtilityFunctions::EffectiveUser(FunctionContext* ctx) { |
| 150 | StringVal effective_user(ctx->effective_user()); |
| 151 | // An empty string indicates the user wasn't set in the session or in the query request. |
| 152 | return (effective_user.len > 0) ? effective_user : StringVal::null(); |
| 153 | } |
| 154 | |
| 155 | StringVal UtilityFunctions::Version(FunctionContext* ctx) { |
| 156 | return AnyValUtil::FromString(ctx, GetVersionString()); |
nothing calls this directly
no test coverage detected