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 movella.*
from movella.movella movella
where movella.user_id in (select movella.user_id
from movella.movella movella
where movella.user_id = $1)
union
(select co_author.user_id
from movella.co_author co_author
where co_author.user_id = $2)
This is failing with "each UNION query must have the same number of columns at character 167"
The query can execute if the union is enclosed in parenthesis.
select movella.*
from movella.movella movella
where movella.user_id in ((select movella.user_id
from movella.movella movella
where movella.user_id = $1)
union
(select co_author.user_id
from movella.co_author co_author
where co_author.user_id = $2))
The text was updated successfully, but these errors were encountered:
Related version 3.3.0.beta2.
Was testing beta2 and looks like it's missing a parenthesis - at least in my testing...
Postgresql 9.3.1
Generates SQL
This is failing with "each UNION query must have the same number of columns at character 167"
The query can execute if the union is enclosed in parenthesis.
The text was updated successfully, but these errors were encountered: