From 4438415b5520bf7b1b6c368f260a739e98e0837f Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 7 Jul 2022 11:03:56 +0100 Subject: [PATCH] Fix error in RPC Modify method query --- src/net/rpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/rpc.rs b/src/net/rpc.rs index ca88f64a..85877d67 100644 --- a/src/net/rpc.rs +++ b/src/net/rpc.rs @@ -490,7 +490,7 @@ impl Rpc { // Get a database reference let kvs = DB.get().unwrap(); // Specify the SQL query string - let sql = "UPDATE $what DIFF $data RETURN DIFF"; + let sql = "UPDATE $what PATCH $data RETURN DIFF"; // Specify the query paramaters let var = Some(map! { String::from("what") => what.make_table_or_thing(),