Fix #1242, embed a view having a select in a where
This commit is contained in:
committed by
Steve Chávez
parent
7c376d6e84
commit
1f513f24a5
Vendored
+13
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user