Allow embeds alias to be used in filters, fix #821
This commit is contained in:
committed by
Steve Chávez
parent
062a5581f5
commit
32c7e32bdf
Vendored
+9
@@ -399,3 +399,12 @@ INSERT INTO message VALUES (2, 'Hi John', 2, 1);
|
||||
INSERT INTO message VALUES (3, 'How are you doing?', 1, 2);
|
||||
INSERT INTO message VALUES (4, 'Hey Julie', 3, 4);
|
||||
INSERT INTO message VALUES (5, 'What''s up Jake', 4, 3);
|
||||
|
||||
TRUNCATE TABLE space CASCADE;
|
||||
INSERT INTO space VALUES (1, 'space 1');
|
||||
|
||||
TRUNCATE TABLE zone CASCADE;
|
||||
INSERT INTO zone VALUES (1, 'zone 1', 2, 1);
|
||||
INSERT INTO zone VALUES (2, 'zone 2', 2, 1);
|
||||
INSERT INTO zone VALUES (3, 'store 3', 3, 1);
|
||||
INSERT INTO zone VALUES (4, 'store 4', 3, 1);
|
||||
|
||||
Vendored
+2
@@ -76,6 +76,8 @@ GRANT ALL ON TABLE
|
||||
, person
|
||||
, message
|
||||
, person_detail
|
||||
, space
|
||||
, zone
|
||||
TO postgrest_test_anonymous;
|
||||
|
||||
GRANT INSERT ON TABLE insertonly TO postgrest_test_anonymous;
|
||||
|
||||
Vendored
+10
@@ -1425,3 +1425,13 @@ create view person_detail as
|
||||
from person p
|
||||
join lateral (select message.sender, count(message.id) as count from message group by message.sender) s on s.sender = p.id
|
||||
join lateral (select message.recipient, count(message.id) as count from message group by message.recipient) r on r.recipient = p.id;
|
||||
|
||||
create table space(
|
||||
id integer primary key,
|
||||
name text);
|
||||
|
||||
create table zone(
|
||||
id integer primary key,
|
||||
name text,
|
||||
zone_type_id integer,
|
||||
space_id integer references space(id));
|
||||
|
||||
Reference in New Issue
Block a user