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
SELECT ... FROM "post" WHERE "post"."id" IN ()
Error: syntax error at or near ")"
Do you think it's worth a similar shortcut on the ORM level (empty list = no query), or that's too magicky? What about subqueries? Technically whereIn([]) could be translated internally into whereSql`false` but that's probably taking on too much...
The text was updated successfully, but these errors were encountered:
Similar to #260, I am putting this boilerplate here and there:
because if I don't, it crashes with:
Do you think it's worth a similar shortcut on the ORM level (empty list = no query), or that's too magicky? What about subqueries? Technically
whereIn([])
could be translated internally intowhereSql`false`
but that's probably taking on too much...The text was updated successfully, but these errors were encountered: