From 376738cd6997e61f1aee317227a8d520e8bbc852 Mon Sep 17 00:00:00 2001 From: Dan Enman Date: Tue, 18 Jun 2024 23:04:26 -0300 Subject: [PATCH] chore: use bare table names to avoid unnecessarily complex queries --- crates/dwn-rs-stores/src/surrealdb/query.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/dwn-rs-stores/src/surrealdb/query.rs b/crates/dwn-rs-stores/src/surrealdb/query.rs index 4f4f43a..5373376 100644 --- a/crates/dwn-rs-stores/src/surrealdb/query.rs +++ b/crates/dwn-rs-stores/src/surrealdb/query.rs @@ -83,11 +83,7 @@ where { self.from = table.into(); - let what = Function::Normal( - "type::table".into(), - vec![format!("{}", Table::from(self.from.clone())).into()], - ) - .into(); + let what = Table::from(self.from.clone()).into(); let mut values = Values::default(); values.0.push(what);