Skip to content

Commit

Permalink
fix conditional expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Stoerkel committed May 20, 2024
1 parent 739b3f3 commit 450718c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions history/backends/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
END IF;
IF _record_snap THEN
IF _snap_of == 'OLD' THEN
IF _snap_of = 'OLD' THEN
SELECT jsonb_object_agg(key, value) INTO _snapshot
FROM jsonb_each(_old)
WHERE key = ANY(_fields);
ELSEIF _snap_of == 'NEW' THEN
ELSEIF _snap_of = 'NEW' THEN
SELECT jsonb_object_agg(key, value) INTO _snapshot
FROM jsonb_each(_new)
WHERE key = ANY(_fields);
Expand Down

0 comments on commit 450718c

Please sign in to comment.