From 05dca092e2a286ee465fde70c0e4a93b568be06f Mon Sep 17 00:00:00 2001 From: 1000101 Date: Mon, 18 Dec 2023 01:59:07 +0100 Subject: [PATCH] fix(cip-1694): dreps without registration --- src/sql/governance/dreps_drep_id.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/governance/dreps_drep_id.sql b/src/sql/governance/dreps_drep_id.sql index 35cb0da6..5589ef14 100644 --- a/src/sql/governance/dreps_drep_id.sql +++ b/src/sql/governance/dreps_drep_id.sql @@ -29,7 +29,7 @@ SELECT dh.view AS "drep_id", ) AS "active_epoch", dh.has_script AS "has_script" FROM drep_hash dh - JOIN drep_registration dr ON (dh.id = dr.drep_hash_id) + LEFT JOIN drep_registration dr ON (dh.id = dr.drep_hash_id) LEFT JOIN drep_distr dd ON ( dh.id = dd.hash_id AND dd.epoch_no = (