Skip to content

Commit

Permalink
Fix: Fix SQL typo in delete_report_configs_user
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
timopollmeier authored and a-h-abdelsalam committed Apr 25, 2024
1 parent 8913552 commit 79c8135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manage_sql_report_configs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 79c8135

Please sign in to comment.