You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When performing a delete query on a table using a join to filter based on other tables' values, the resulting query doesn't include the join operation.
The query fails as the db can't find the joined tables' columns.
Doing the same query with a SELECT (all()) instead of DELETE (delete()) works as expected.
Reproduced on PostgreSQL and SQLite, but other drivers could be affected too.
Describe the bug
When performing a delete query on a table using a join to filter based on other tables' values, the resulting query doesn't include the join operation.
The query fails as the db can't find the joined tables' columns.
Doing the same query with a
SELECT
(all()
) instead ofDELETE
(delete()
) works as expected.Reproduced on PostgreSQL and SQLite, but other drivers could be affected too.
To Reproduce
Steps to reproduce the behavior:
PostgreSQL
SQLite
Expected behavior
The join operation should be included in the final query like it is done in a normal SELECT query.
Here's a SELECT query and resulting logs using the same filters on SQLite:
Logs:
The query is built correctly.
Environment
EDIT: seems the same as vapor/fluent-kit#506
The text was updated successfully, but these errors were encountered: