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
Typegen fails on call with unnest. The output is Query is not typeable.
I would expect that in this case the types in the where clause should not matter to the typegen, since the columns are pulled straight from a table, not based on anything to do with the unpacked rows.
When I remove the where clause, the query typegens successfully.
There's some logic that (tries to) convert all wheres into where true since where doesn't make a difference to the output type. But clearly it's tripping up on where clauses with complex values (even if they're not relevant).
I'll look into fixing that logic, but I also would like to add some kind of -- typegen-ignore-next-line directive which basically tells the tool to act as though the following line doesn't exist. That might be a workable escape hatch for this kind of thing too.
Typegen fails on call with
unnest
. The output isQuery is not typeable
.I would expect that in this case the types in the
where
clause should not matter to the typegen, since the columns are pulled straight from a table, not based on anything to do with the unpacked rows.When I remove the
where
clause, the query typegens successfully.slonik
generated sql
The text was updated successfully, but these errors were encountered: