fix
This commit is contained in:
parent
42803af51a
commit
be28c2ab79
@ -74,8 +74,7 @@ BEGIN
|
|||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
RETURN QUERY SELECT t.cid, t.val, t.block_number, t.removed, t.state_leaf_removed
|
RETURN QUERY SELECT t.cid, t.val, t.block_number, t.removed, t.state_leaf_removed
|
||||||
FROM tmp_tt_stg2 AS t
|
FROM tmp_tt_stg2 AS t LIMIT 1;
|
||||||
LIMIT 1;
|
|
||||||
END
|
END
|
||||||
$BODY$
|
$BODY$
|
||||||
language 'plpgsql';
|
language 'plpgsql';
|
||||||
@ -88,7 +87,7 @@ CREATE OR REPLACE FUNCTION public.get_storage_at_by_hash(v_state_leaf_key TEXT,
|
|||||||
cid TEXT,
|
cid TEXT,
|
||||||
val BYTEA,
|
val BYTEA,
|
||||||
block_number BIGINT,
|
block_number BIGINT,
|
||||||
node_type INTEGER,
|
removed BOOL,
|
||||||
state_leaf_removed BOOL
|
state_leaf_removed BOOL
|
||||||
)
|
)
|
||||||
AS
|
AS
|
||||||
|
@ -191,7 +191,7 @@ $$;
|
|||||||
-- Name: get_storage_at_by_hash(text, text, text); Type: FUNCTION; Schema: public; Owner: -
|
-- 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
|
LANGUAGE plpgsql
|
||||||
AS $$
|
AS $$
|
||||||
DECLARE
|
DECLARE
|
||||||
@ -272,8 +272,7 @@ BEGIN
|
|||||||
ORDER BY header_cids.block_number DESC LIMIT 1;
|
ORDER BY header_cids.block_number DESC LIMIT 1;
|
||||||
END IF;
|
END IF;
|
||||||
RETURN QUERY SELECT t.cid, t.val, t.block_number, t.removed, t.state_leaf_removed
|
RETURN QUERY SELECT t.cid, t.val, t.block_number, t.removed, t.state_leaf_removed
|
||||||
FROM tmp_tt_stg2 AS t
|
FROM tmp_tt_stg2 AS t LIMIT 1;
|
||||||
LIMIT 1;
|
|
||||||
END
|
END
|
||||||
$$;
|
$$;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user