From 951d1833132dfbf43e21a0ede12f92dd7f208c25 Mon Sep 17 00:00:00 2001
From: jsalyers <jsalyers@syncad.com>
Date: Mon, 9 Nov 2020 17:07:46 -0500
Subject: [PATCH] [JES] Noticed the STABLEs got switched back to VOLATILEs.
 This fixes that

---
 ...ge_get_ranked_post_for_observer_communities.sql | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/hive/db/sql_scripts/bridge_get_ranked_post_for_observer_communities.sql b/hive/db/sql_scripts/bridge_get_ranked_post_for_observer_communities.sql
index e32d76222..e879b8c7d 100644
--- a/hive/db/sql_scripts/bridge_get_ranked_post_for_observer_communities.sql
+++ b/hive/db/sql_scripts/bridge_get_ranked_post_for_observer_communities.sql
@@ -61,7 +61,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 )
@@ -127,7 +127,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 )
@@ -205,7 +205,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 )
@@ -277,7 +277,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 )
@@ -347,7 +347,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 )
@@ -423,7 +423,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 )
@@ -494,4 +494,4 @@ BEGIN
   LIMIT _limit;
 END
 $function$
-language plpgsql VOLATILE;
+language plpgsql STABLE;
-- 
GitLab