Fix self join resource embedding on PATCH
This commit is contained in:
committed by
Steve Chávez
parent
81e5a62f25
commit
94f5894d7f
Vendored
+8
@@ -499,3 +499,11 @@ COPY pgrst_reserved_chars ("*id*", ":arr->ow::cast", "(inside,parens)", "a.dotte
|
||||
2 | arrow-2 | parens-2 | dotted-2 | space-2
|
||||
3 | arrow-3 | parens-3 | dotted-3 | space-3
|
||||
\.
|
||||
|
||||
TRUNCATE TABLE web_content CASCADE;
|
||||
INSERT INTO web_content VALUES (5, 'wat', null);
|
||||
INSERT INTO web_content VALUES (0, 'tardis', 5);
|
||||
INSERT INTO web_content VALUES (1, 'fezz', 0);
|
||||
INSERT INTO web_content VALUES (2, 'foo', 0);
|
||||
INSERT INTO web_content VALUES (3, 'bar', 0);
|
||||
INSERT INTO web_content VALUES (4, 'wut', 1);
|
||||
|
||||
Vendored
+1
@@ -103,6 +103,7 @@ GRANT ALL ON TABLE
|
||||
, openapi_types
|
||||
, getallprojects_view
|
||||
, get_projects_above_view
|
||||
, web_content
|
||||
TO postgrest_test_anonymous;
|
||||
|
||||
GRANT INSERT ON TABLE insertonly TO postgrest_test_anonymous;
|
||||
|
||||
Vendored
+7
@@ -1742,3 +1742,10 @@ select * from getallprojects();
|
||||
|
||||
create view get_projects_above_view as
|
||||
select * from get_projects_above(1);
|
||||
|
||||
CREATE TABLE web_content (
|
||||
id integer,
|
||||
name text,
|
||||
p_web_id integer references web_content(id),
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user