Replies: 1 comment
-
The compilation error is expected behavior as it would generate SQL like diesel::delete(file.filter(uid.eq_any(import_file.filter(import_id.eq(param_uid)).select(import_file::file_uid))).execute(conn) should work fine |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, i have 2 SQL tables defined like this:
I'm struggeling to write an expression that deletes all file rows by
import_uid
. I tried something like this:However that code results in a huge error log: https://gist.github.com/feliwir/7d503c926ad8d9aa78f820d15488163b
From my research it doesn't seem possible to delete on a joined table? How can i possibly achieve what i'm trying to do here?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions