From c1f228e3c57ce2bdfa09700561b50b45477d7cd0 Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Wed, 14 Aug 2019 18:36:27 +0200 Subject: [PATCH] fix unfollow function --- src/main/resources/sql/functions/article/find_articles.sql | 2 +- .../sql/functions/constitution/find_constitutions.sql | 2 +- src/main/resources/sql/functions/follow/unfollow.sql | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/resources/sql/functions/article/find_articles.sql b/src/main/resources/sql/functions/article/find_articles.sql index 7706049..196de46 100644 --- a/src/main/resources/sql/functions/article/find_articles.sql +++ b/src/main/resources/sql/functions/article/find_articles.sql @@ -38,4 +38,4 @@ begin end; $$; --- drop function if exists find_articles(json, int, int); +-- drop function if exists find_articles(text, text, text, int, int); diff --git a/src/main/resources/sql/functions/constitution/find_constitutions.sql b/src/main/resources/sql/functions/constitution/find_constitutions.sql index ea1156a..7b75191 100644 --- a/src/main/resources/sql/functions/constitution/find_constitutions.sql +++ b/src/main/resources/sql/functions/constitution/find_constitutions.sql @@ -39,4 +39,4 @@ begin end; $$; --- drop function if exists find_constitutions(json, int, int); +-- drop function if exists find_constitutions(text, text, text, int, int); diff --git a/src/main/resources/sql/functions/follow/unfollow.sql b/src/main/resources/sql/functions/follow/unfollow.sql index 22ef62a..b6d8315 100644 --- a/src/main/resources/sql/functions/follow/unfollow.sql +++ b/src/main/resources/sql/functions/follow/unfollow.sql @@ -1,9 +1,6 @@ -create or replace function unfollow(reference regclass, target_id uuid, citizen_id uuid) returns void +create or replace function unfollow(reference regclass, _target_id uuid, _citizen_id uuid) returns void language plpgsql as $$ -declare - _citizen_id alias for citizen_id; - _target_id alias for target_id; begin delete from follow f