Skip to content
Snippets Groups Projects
Commit 097e60ee authored by Marcin's avatar Marcin
Browse files

fix incorrect volatile sql function type

parent 4fe3504a
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!366fix incorrect volatile sql function type
......@@ -55,7 +55,7 @@ BEGIN
LIMIT _limit;
END
$function$
language plpgsql VOLATILE;
language plpgsql STABLE;
DROP FUNCTION IF EXISTS bridge_get_ranked_post_by_hot_for_observer_communities;
CREATE FUNCTION bridge_get_ranked_post_by_hot_for_observer_communities( in _observer VARCHAR, in _author VARCHAR, in _permlink VARCHAR, in _limit SMALLINT )
......@@ -118,7 +118,7 @@ BEGIN
LIMIT _limit;
END
$function$
language plpgsql VOLATILE;
language plpgsql STABLE;
DROP FUNCTION IF EXISTS bridge_get_ranked_post_by_payout_comments_for_observer_communities;
CREATE FUNCTION bridge_get_ranked_post_by_payout_comments_for_observer_communities( in _observer VARCHAR, in _author VARCHAR, in _permlink VARCHAR, in _limit SMALLINT )
......@@ -190,7 +190,7 @@ BEGIN
LIMIT _limit;
END
$function$
language plpgsql VOLATILE;
language plpgsql STABLE;
DROP FUNCTION IF EXISTS bridge_get_ranked_post_by_payout_for_observer_communities;
CREATE FUNCTION bridge_get_ranked_post_by_payout_for_observer_communities( in _observer VARCHAR, in _author VARCHAR, in _permlink VARCHAR, in _limit SMALLINT )
......@@ -255,7 +255,7 @@ BEGIN
LIMIT _limit;
END
$function$
language plpgsql VOLATILE;
language plpgsql STABLE;
DROP FUNCTION IF EXISTS bridge_get_ranked_post_by_promoted_for_observer_communities;
CREATE FUNCTION bridge_get_ranked_post_by_promoted_for_observer_communities( in _observer VARCHAR, in _author VARCHAR, in _permlink VARCHAR, in _limit SMALLINT )
......@@ -318,7 +318,7 @@ BEGIN
LIMIT _limit;
END
$function$
language plpgsql VOLATILE;
language plpgsql STABLE;
DROP FUNCTION IF EXISTS bridge_get_ranked_post_by_trends_for_observer_communities;
CREATE OR REPLACE FUNCTION bridge_get_ranked_post_by_trends_for_observer_communities( in _observer VARCHAR, in _author VARCHAR, in _permlink VARCHAR, in _limit SMALLINT )
......@@ -390,7 +390,7 @@ BEGIN
LIMIT _limit;
END
$function$
language plpgsql VOLATILE;
language plpgsql STABLE;
DROP FUNCTION IF EXISTS bridge_get_ranked_post_by_muted_for_observer_communities;
CREATE FUNCTION bridge_get_ranked_post_by_muted_for_observer_communities( in _observer VARCHAR, in _author VARCHAR, in _permlink VARCHAR, in _limit SMALLINT )
......@@ -454,4 +454,4 @@ BEGIN
LIMIT _limit;
END
$function$
language plpgsql VOLATILE;
language plpgsql STABLE;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment