From 5425d0b550490f2261a9479e8b05461f00e33dcc Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 19 May 2022 23:03:00 +0100 Subject: [PATCH] Enable $self or $this as special paramater names --- lib/src/sql/param.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/sql/param.rs b/lib/src/sql/param.rs index 9d61e9da..738bc2a9 100644 --- a/lib/src/sql/param.rs +++ b/lib/src/sql/param.rs @@ -42,7 +42,7 @@ impl Param { match self.first() { // The first part will be a field Some(Part::Field(v)) => match v.as_str() { - "this" => match doc { + "this" | "self" => match doc { // The base document exists Some(v) => { // Get the path parts