Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Merge requests
!368
Something went wrong on our end
New tests
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
New tests
mt-new-tests
into
develop
Overview
0
Commits
10
Pipelines
0
Changes
3
Merged
Mariusz Trela
requested to merge
mt-new-tests
into
develop
4 years ago
Overview
0
Commits
10
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Viewing commit
cda1a819
Prev
Next
Show latest version
3 files
+
19
−
19
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
cda1a819
[ABW]: merge with latest develop
· cda1a819
Andrzej Lisak
authored
4 years ago
hive/db/sql_scripts/condenser_follows.sql
+
2
−
2
Options
@@ -27,7 +27,7 @@ BEGIN
__account_id
=
find_account_id
(
_account
,
True
);
__start_id
=
find_account_id
(
_start
,
_start
<>
''
);
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
;
RETURN
QUERY
SELECT
ha
.
name
@@ -55,7 +55,7 @@ BEGIN
__account_id
=
find_account_id
(
_account
,
True
);
__start_id
=
find_account_id
(
_start
,
_start
<>
''
);
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
;
RETURN
QUERY
SELECT
ha
.
name
Loading