query(function): fix case
@@ -37,7 +37,7 @@ impl ContextFunction {
}
Ok(match name.to_lowercase().as_str() {
- "database" | "currentDatabase" | "current_database" => {
+ "database" | "currentdatabase" | "current_database" => {
vec![Expression::create_literal(DataValue::String(
ctx.get_current_database().into_bytes(),
))]
@@ -45,7 +45,7 @@ impl ContextFunction {
"version" => vec![Expression::create_literal(DataValue::String(
ctx.get_fuse_version().into_bytes(),
))],
- "current_user" | "user" | "currentUser" => vec![Expression::create_literal(
+ "current_user" | "user" | "currentuser" => vec![Expression::create_literal(
DataValue::String(ctx.get_current_user()?.identity().to_string().into_bytes()),
)],
"connection_id" => vec![Expression::create_literal(DataValue::String(
