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
q2 will print INSERT into names SELECT x1.name FROM ((SELECT 'x', p.age FROM person p) UNION (SELECT x.* FROM person x)) AS x1 - which is error in Postgres with message org.postgresql.util.PSQLException: ERROR: column x1.name does not exist. Running just q1 returns correct results.
Version: 3.11.0
Module:
quill-jdbc-zio
Database:
postgresql
Expected behavior
Static query with union should look the same including column aliases when used standalone or when used as a part of infix
Actual behavior
Column aliases are missing when query with union used in infix expression
Steps to reproduce the behavior
q2 will print
INSERT into names SELECT x1.name FROM ((SELECT 'x', p.age FROM person p) UNION (SELECT x.* FROM person x)) AS x1
- which is error in Postgres with messageorg.postgresql.util.PSQLException: ERROR: column x1.name does not exist
. Running just q1 returns correct results.https://scastie.scala-lang.org/vladimirkl/bkhEuyRiQqyFCW14oe0ipA/10
Workaround
add column alias manually using infix
@getquill/maintainers
The text was updated successfully, but these errors were encountered: