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
Hi, I'm running into the subquery in FROM must have an alias error when generating a sub query and attempting to run it in postgres.
(sql/format {:select [:type]
:from [[{:select [[:address:field-alias]]
:from [:Candidate]} :sub-q-alias]]}
:parameterizer:postgresql)
;;=> ["SELECT type FROM (SELECT address AS field_alias FROM Candidate) sub_q_alias"]
Postgres instead of :
.. FROM (SELECT ...) sub_q_alias
seems to need :
.. FROM (SELECT ...) AS sub_q_alias
I reported the same issue in the original honeysql repo seancorfield/honeysql#263, but I imagine the solution here can be different and maybe easier than there.
Thanks!!
The text was updated successfully, but these errors were encountered:
Hi, I'm running into the
subquery in FROM must have an alias
error when generating a sub query and attempting to run it in postgres.Postgres instead of :
seems to need :
I reported the same issue in the original honeysql repo seancorfield/honeysql#263, but I imagine the solution here can be different and maybe easier than there.
Thanks!!
The text was updated successfully, but these errors were encountered: