Skip to content
Snippets Groups Projects
Commit aca7a645 authored by Mariusz Trela's avatar Mariusz Trela
Browse files

Fixes in `condenser_get_followers`, `condenser_get_following` SQL functions

parent efc6af50
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!368New tests
...@@ -27,7 +27,7 @@ BEGIN ...@@ -27,7 +27,7 @@ BEGIN
__account_id = find_account_id( _account, True ); __account_id = find_account_id( _account, True );
__start_id = find_account_id( _start, _start <> '' ); __start_id = find_account_id( _start, _start <> '' );
IF __start_id <> 0 THEN IF __start_id <> 0 THEN
SELECT INTO __start_id COALESCE( ( SELECT id FROM hive_follows WHERE following = __account_id AND follower = __start_id ), 0 ); SELECT INTO __start_id ( SELECT id FROM hive_follows WHERE following = __account_id AND follower = __start_id );
END IF; END IF;
RETURN QUERY SELECT RETURN QUERY SELECT
ha.name ha.name
...@@ -55,7 +55,7 @@ BEGIN ...@@ -55,7 +55,7 @@ BEGIN
__account_id = find_account_id( _account, True ); __account_id = find_account_id( _account, True );
__start_id = find_account_id( _start, _start <> '' ); __start_id = find_account_id( _start, _start <> '' );
IF __start_id <> 0 THEN IF __start_id <> 0 THEN
SELECT INTO __start_id COALESCE( ( SELECT id FROM hive_follows WHERE follower = __account_id AND following = __start_id ), 0 ); SELECT INTO __start_id ( SELECT id FROM hive_follows WHERE follower = __account_id AND following = __start_id );
END IF; END IF;
RETURN QUERY SELECT RETURN QUERY SELECT
ha.name ha.name
......
Subproject commit fba171b01622cae77e8b6d9f7f5be3c14f920924 Subproject commit f93c1be91226f54b8b389d69195ca4e7cde1a851
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