Skip to content

Commit

Permalink
Fix: add missing trash suffix when getting by id
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell authored and timopollmeier committed Mar 14, 2024
1 parent 38c6d31 commit 69a06f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -5039,7 +5039,7 @@ init_get_iterator2_with (iterator_t* iterator, const char *type,
init_iterator (iterator,
"%sSELECT %s"
" FROM %ss%s %s"
" WHERE %ss.id = %llu"
" WHERE %ss%s.id = %llu"
" AND %s%s"
"%s%s;",
with_clause ? with_clause : "",
Expand All @@ -5048,6 +5048,7 @@ init_get_iterator2_with (iterator_t* iterator, const char *type,
type_trash_in_table (type) ? "" : "_trash",
extra_tables ? extra_tables : "",
type,
type_trash_in_table (type) ? "" : "_trash",
resource,
owned_clause,
extra_where_single ? extra_where_single : "",
Expand Down

0 comments on commit 69a06f7

Please sign in to comment.