From 792b32fb1c3415a2781f45fb64d16e1a330273c6 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Sat, 8 Jul 2023 18:05:23 -0600 Subject: [PATCH] Fix: use executemany not executescript The latter doesn't support variable substitution --- projects/tentacles/src/python/tentacles/sql/files.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/tentacles/src/python/tentacles/sql/files.sql b/projects/tentacles/src/python/tentacles/sql/files.sql index b83fd5d..e475a64 100644 --- a/projects/tentacles/src/python/tentacles/sql/files.sql +++ b/projects/tentacles/src/python/tentacles/sql/files.sql @@ -43,10 +43,10 @@ WHERE user_id = :uid ; --- name: delete-file# +-- name: delete-file*! DELETE FROM jobs WHERE - user_uid = :uid + user_id = :uid AND file_id = :fid ;