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
However, when querying a simple selection as below, it won't work because title column gets undefined in the generated query when either of id, name or status is selected with it.
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.38.2
What version of
drizzle-kit
are you using?0.30.1
Other packages
No response
Describe the Bug
What is the undesired behavior?
The query to select from a materialized view won't be generated properly.
What are the steps to reproduce it?
This materialized view is generated properly as I could confirmed in raw PostgreSQL.
However, when querying a simple selection as below, it won't work because
title
column gets undefined in the generated query when either ofid
,name
orstatus
is selected with it.Here's the generated query.
But
title
can be back when removing those three columns.The current workaround is replace
title: filteredItems.title
withtitle: sql<string>`title`
.What is the desired result?
All columns are to be selected at once without workaround.
The text was updated successfully, but these errors were encountered: