Skip to content

Commit

Permalink
Fix tx_metalabels casting, closes koios-artifacts#95 (#1535)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Sep 25, 2022
1 parent 4770709 commit 2888e10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/grest/rpc/transactions/tx_metalabels.sql
Expand Up @@ -7,13 +7,13 @@ CREATE FUNCTION grest.tx_metalabels()
BEGIN
RETURN QUERY
WITH RECURSIVE t AS (
(SELECT tm.key::text FROM public.tx_metadata tm ORDER BY key LIMIT 1)
(SELECT tm.key FROM public.tx_metadata tm ORDER BY key LIMIT 1)
UNION ALL
SELECT (SELECT tm.key FROM tx_metadata tm WHERE tm.key > t.key ORDER BY key LIMIT 1)
FROM t
WHERE t.key IS NOT NULL
)
SELECT t.key FROM t WHERE t.key IS NOT NULL;
SELECT t.key::text FROM t WHERE t.key IS NOT NULL;
END;
$$;

Expand Down

0 comments on commit 2888e10

Please sign in to comment.