This commit is contained in:
i-norden 2023-03-07 20:00:01 -06:00
parent 42803af51a
commit be28c2ab79
2 changed files with 4 additions and 6 deletions

View File

@ -74,8 +74,7 @@ BEGIN
END IF;
RETURN QUERY SELECT t.cid, t.val, t.block_number, t.removed, t.state_leaf_removed
FROM tmp_tt_stg2 AS t
LIMIT 1;
FROM tmp_tt_stg2 AS t LIMIT 1;
END
$BODY$
language 'plpgsql';
@ -88,7 +87,7 @@ CREATE OR REPLACE FUNCTION public.get_storage_at_by_hash(v_state_leaf_key TEXT,
cid TEXT,
val BYTEA,
block_number BIGINT,
node_type INTEGER,
removed BOOL,
state_leaf_removed BOOL
)
AS

View File

@ -191,7 +191,7 @@ $$;
-- Name: get_storage_at_by_hash(text, text, text); Type: FUNCTION; Schema: public; Owner: -
--
CREATE FUNCTION public.get_storage_at_by_hash(v_state_leaf_key text, v_storage_leaf_key text, v_block_hash text) RETURNS TABLE(cid text, val bytea, block_number bigint, node_type integer, state_leaf_removed boolean)
CREATE FUNCTION public.get_storage_at_by_hash(v_state_leaf_key text, v_storage_leaf_key text, v_block_hash text) RETURNS TABLE(cid text, val bytea, block_number bigint, removed boolean, state_leaf_removed boolean)
LANGUAGE plpgsql
AS $$
DECLARE
@ -272,8 +272,7 @@ BEGIN
ORDER BY header_cids.block_number DESC LIMIT 1;
END IF;
RETURN QUERY SELECT t.cid, t.val, t.block_number, t.removed, t.state_leaf_removed
FROM tmp_tt_stg2 AS t
LIMIT 1;
FROM tmp_tt_stg2 AS t LIMIT 1;
END
$$;