Fix #1242, embed a view having a select in a where

This commit is contained in:
steve-chavez
2019-03-09 16:03:26 -05:00
committed by Steve Chávez
parent 7c376d6e84
commit 1f513f24a5
5 changed files with 25 additions and 2 deletions
+13
View File
@@ -1545,6 +1545,19 @@ select
from projects
group by client_id;
create view test.authors_w_entities as
select
id,
name,
(
select json_agg(id)
from test.entities
where id not in (
select parent_id from test.child_entities
)
) as entities
from private.authors;
CREATE TABLE test."Foo"(
id int primary key,
name text