tree-sitter-plpgsql/corpus/plpgsql/return_statement.txt
Christian De la Hoz 6303f6c3d8 getting into shape
2021-08-28 12:46:32 +02:00

40 lines
929 B
Plaintext

================================================================================
return
================================================================================
DO $$
BEGIN
RETURN 1;
END
$$;
--------------------------------------------------------------------------------
(source_file
(do_block
(block
(dollar_quote)
(body
(return_statement
(number)))
(dollar_quote))))
================================================================================
return query
================================================================================
DO $$
BEGIN
RETURN QUERY select 1;
END
$$;
--------------------------------------------------------------------------------
(source_file
(do_block
(block
(dollar_quote)
(body
(return_statement
(select_statement
(select_item
(number)))))
(dollar_quote))))