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
I have verified that the bug I'm about to report hasn't been filed before.
What version of drizzle-orm are you using?
0.36.2
What version of drizzle-kit are you using?
0.28.1
Other packages
No response
Describe the Bug
This is possibly related to #3268, but may be a separate issue.
I have a query I'm trying to run on a Postgres database. It's fairly straightforward, but I'm getting an error thrown due to the assembled query being invalid. As an abridged and sterilized version of what I've got:
This throws an error with the following exception:
error: column Table1.field1 does not exist
It's as if it's taking the table queried and automatically applying it to any column in the where clause even though it's explicitly defined otherwise. I need this in the top where clause as I need it to be a full filter and not effectively a left join with a condition. Is this not a supported configuration or am I doing something wrong here? I would think this should work, but I don't think I've explicitly attempted this combination until recently. Aliasing the tables does not help.
The text was updated successfully, but these errors were encountered:
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.36.2
What version of
drizzle-kit
are you using?0.28.1
Other packages
No response
Describe the Bug
This is possibly related to #3268, but may be a separate issue.
I have a query I'm trying to run on a Postgres database. It's fairly straightforward, but I'm getting an error thrown due to the assembled query being invalid. As an abridged and sterilized version of what I've got:
Pretty straightforward one-to-many relationship. I'm trying to do the following query (type = enum, field1s = string array):
This throws an error with the following exception:
It's as if it's taking the table queried and automatically applying it to any column in the where clause even though it's explicitly defined otherwise. I need this in the top where clause as I need it to be a full filter and not effectively a left join with a condition. Is this not a supported configuration or am I doing something wrong here? I would think this should work, but I don't think I've explicitly attempted this combination until recently. Aliasing the tables does not help.
The text was updated successfully, but these errors were encountered: