From 79c8135bd15739ae0e580f13ddbad3c0f6d31a7d Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Thu, 25 Apr 2024 08:33:15 +0200 Subject: [PATCH] Fix: Fix SQL typo in delete_report_configs_user A missing "FROM" is added in the SQL run to delete all report configs of a given user. This fixes deleting a user without an inheritor. --- src/manage_sql_report_configs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manage_sql_report_configs.c b/src/manage_sql_report_configs.c index f9550ecee..69efaca5f 100644 --- a/src/manage_sql_report_configs.c +++ b/src/manage_sql_report_configs.c @@ -555,7 +555,7 @@ delete_report_configs_user (user_t user) " WHERE report_config IN" " (SELECT id FROM report_configs_trash WHERE owner = %llu)", user); - sql ("DELETE report_configs_trash WHERE owner = %llu;", user); + sql ("DELETE FROM report_configs_trash WHERE owner = %llu;", user); } /**