From 525b02ca4691e97cd1f59be7a2857ea7252a746e Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 1 Jun 2022 10:50:07 +0100 Subject: [PATCH] Ensure cast functions are output correctly as object keys --- lib/src/sql/value/value.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/sql/value/value.rs b/lib/src/sql/value/value.rs index a6bbb87b..4cbd2d57 100644 --- a/lib/src/sql/value/value.rs +++ b/lib/src/sql/value/value.rs @@ -647,7 +647,7 @@ impl Value { Function::Future(_) => "fn::future".to_string().into(), Function::Script(_) => "fn::script".to_string().into(), Function::Normal(f, _) => f.to_string().into(), - _ => v.to_string().into(), + Function::Cast(_, v) => v.to_idiom(), }, _ => self.to_string().into(), }