Skip to content
Snippets Groups Projects
Commit 4a0c9dda authored by Martin Lees's avatar Martin Lees
Browse files

test

parent 1147b6c1
No related branches found
No related tags found
No related merge requests found
...@@ -105,7 +105,7 @@ if _parent_author != '' THEN ...@@ -105,7 +105,7 @@ if _parent_author != '' THEN
root_id, is_muted, is_valid, root_id, is_muted, is_valid,
author_id, permlink_id, created_at, updated_at, sc_hot, sc_trend, active, payout_at, cashout_time, counter_deleted, block_num, block_num_created) author_id, permlink_id, created_at, updated_at, sc_hot, sc_trend, active, payout_at, cashout_time, counter_deleted, block_num, block_num_created)
SELECT php.id AS parent_id, php.depth + 1 AS depth, SELECT php.id AS parent_id, php.depth + 1 AS depth,
pcp.community_id AS community_id, -- community id has to be decorated because it creates confusion between the column and the variable pcp.community_id AS community_id,
COALESCE(php.category_id, (select hcg.id from hive_category_data hcg where hcg.category = _parent_permlink)) AS category_id, COALESCE(php.category_id, (select hcg.id from hive_category_data hcg where hcg.category = _parent_permlink)) AS category_id,
(CASE(php.root_id) (CASE(php.root_id)
WHEN 0 THEN php.id WHEN 0 THEN php.id
...@@ -121,8 +121,8 @@ if _parent_author != '' THEN ...@@ -121,8 +121,8 @@ if _parent_author != '' THEN
_block_num as block_num, _block_num as block_num_created _block_num as block_num, _block_num as block_num_created
FROM hive_accounts ha, FROM hive_accounts ha,
hive_permlink_data hpd, hive_permlink_data hpd,
hive_posts php, process_community_post(_block_num, _community_support_start_block, NULL, _parent_permlink, php.author_id, false) pcp,
process_community_post(_block_num, _community_support_start_block, NULL, _parent_permlink, php.author_id, false) pcp hive_posts php
INNER JOIN hive_accounts pha ON pha.id = php.author_id INNER JOIN hive_accounts pha ON pha.id = php.author_id
INNER JOIN hive_permlink_data phpd ON phpd.id = php.permlink_id INNER JOIN hive_permlink_data phpd ON phpd.id = php.permlink_id
WHERE pha.name = _parent_author AND phpd.permlink = _parent_permlink AND WHERE pha.name = _parent_author AND phpd.permlink = _parent_permlink AND
...@@ -166,8 +166,8 @@ ELSE ...@@ -166,8 +166,8 @@ ELSE
FROM prepare_tags( ARRAY_APPEND(_metadata_tags, _parent_permlink ) ) FROM prepare_tags( ARRAY_APPEND(_metadata_tags, _parent_permlink ) )
) as tags_ids ) as tags_ids
FROM hive_accounts ha, FROM hive_accounts ha,
hive_permlink_data hpd, process_community_post(_block_num, _community_support_start_block, NULL, _parent_permlink, author_id, false) pcp,
process_community_post(_block_num, _community_support_start_block, NULL, _parent_permlink, author_id, false) pcp hive_permlink_data hpd
WHERE ha.name = _author and hpd.permlink = _permlink WHERE ha.name = _author and hpd.permlink = _permlink
ON CONFLICT ON CONSTRAINT hive_posts_ux1 DO UPDATE SET ON CONFLICT ON CONSTRAINT hive_posts_ux1 DO UPDATE SET
......
  • Howo @howo

    mentioned in commit adaf0414

    ·

    mentioned in commit adaf0414

    Toggle commit list
  • Howo @howo

    mentioned in commit 20480803

    ·

    mentioned in commit 20480803

    Toggle commit list
  • Howo @howo

    mentioned in commit cd01716c

    ·

    mentioned in commit cd01716c

    Toggle commit list
  • Howo @howo

    mentioned in commit e88b39ff

    ·

    mentioned in commit e88b39ff

    Toggle commit list
  • Howo @howo

    mentioned in commit a3bd6741

    ·

    mentioned in commit a3bd6741

    Toggle commit list
  • Howo @howo

    mentioned in commit 13e985d4

    ·

    mentioned in commit 13e985d4

    Toggle commit list
  • Howo @howo

    mentioned in commit f9f460d7

    ·

    mentioned in commit f9f460d7

    Toggle commit list
  • Howo @howo

    mentioned in commit 80a3a3a1

    ·

    mentioned in commit 80a3a3a1

    Toggle commit list
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