From dc323936d657208f61e54d7e02cbaa6500eae470 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 22 Jun 2020 12:21:38 +0200 Subject: [PATCH] Fix potential source of issues --- src/helpers/database.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/database.rs b/src/helpers/database.rs index 7314570..aea059a 100644 --- a/src/helpers/database.rs +++ b/src/helpers/database.rs @@ -705,7 +705,7 @@ pub fn update(u: UpdateInfo) -> ResultBoxError<()> { // Additional conditions if let Some(custom_where) = u.custom_where { - conditions = format!("{} AND ({})", conditions, custom_where); + conditions = format!("({}) AND ({})", conditions, custom_where); u.custom_where_args.iter().for_each(|f| values.push(f)) }