Fix wrong status 404 when PATCH request didn't change anything (#1272)

This commit is contained in:
Xavier Francisco
2019-04-19 13:50:19 -05:00
committed by Steve Chávez
parent 87f7e86aa7
commit 553531711b
5 changed files with 117 additions and 80 deletions
+5
View File
@@ -116,6 +116,11 @@ CREATE FUNCTION always_true(test.items) RETURNS boolean
LANGUAGE sql STABLE
AS $$ SELECT true $$;
CREATE FUNCTION is_first(test.items) RETURNS boolean
LANGUAGE sql STABLE
AS $$ SELECT $1.id = 1 $$;
CREATE FUNCTION anti_id(test.items) RETURNS bigint
LANGUAGE sql STABLE
AS $_$ SELECT $1.id * -1 $_$;