Skip to content

Commit

Permalink
Display debugging output
Browse files Browse the repository at this point in the history
  • Loading branch information
asarhaddon committed Oct 25, 2024
1 parent 4e529a0 commit 5dfe867
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions impls/plpgsql/step2_eval.sql
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ DECLARE
evda0 integer;
result integer;
BEGIN

RAISE NOTICE 'pr_str ast: %', ast;
RAISE NOTICE 'pr_str type: %', (SELECT type_id FROM types.value WHERE value_id = ast);
;

CASE type_id FROM types.value WHERE value_id = ast
WHEN 7 THEN RETURN mal.eval_symbol(ast, env);
WHEN 8 THEN NULL; -- List, proceed after this case statement.
Expand Down

0 comments on commit 5dfe867

Please sign in to comment.