From d7b392cf8b813e6366554d91b8dd7ed0553d4572 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 15 Aug 2024 10:22:20 +0100 Subject: [PATCH] Yield remote fields without needing to clear the original field value (#4515) --- core/src/sql/value/set.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/sql/value/set.rs b/core/src/sql/value/set.rs index b8fe5dae..6c1c9d3d 100644 --- a/core/src/sql/value/set.rs +++ b/core/src/sql/value/set.rs @@ -151,6 +151,11 @@ impl Value { Ok(()) } }, + // Current value at path is a record + Value::Thing(_) => { + *self = Value::base(); + stk.run(|stk| self.set(stk, ctx, opt, path, val)).await + } // Current value at path is empty Value::Null => { *self = Value::base();