From 0c752b43e932b4734ff1d06dcdf124a134c6aed4 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 5 May 2023 00:06:49 +0100 Subject: [PATCH] Optimise `array::join()` SQL function (#1925) --- lib/src/fnc/array.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/fnc/array.rs b/lib/src/fnc/array.rs index 67551e5c..0cf07543 100644 --- a/lib/src/fnc/array.rs +++ b/lib/src/fnc/array.rs @@ -98,7 +98,7 @@ pub fn intersect((array, other): (Array, Array)) -> Result { } pub fn join((arr, sep): (Array, String)) -> Result { - Ok(arr.into_iter().map(|s| s.to_raw_string()).collect::>().join(&sep).into()) + Ok(arr.into_iter().map(Value::as_raw_string).collect::>().join(&sep).into()) } pub fn len((array,): (Array,)) -> Result {