Skip to content

Commit

Permalink
Trying a formatting thing to fix unterminated function in postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Bellamy committed Jun 10, 2021
1 parent eadab59 commit c1fe1e5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ CREATE TABLE history_trades_60000 (
-- TODO: This should probably handle updates, not just inserts.
-- TODO: This shouldn't assume we are always inserting in order.
CREATE OR REPLACE FUNCTION update_history_trades_compute_1m()
RETURNS trigger
language plpgsql AS $$
RETURNS trigger AS $$
DECLARE
timestamp bigint;
key text;
Expand Down Expand Up @@ -90,7 +89,8 @@ CREATE OR REPLACE FUNCTION update_history_trades_compute_1m()
AND h.counter_asset_id = new.counter_asset_id;

RETURN NULL;
END $$;
END;
$$ LANGUAGE plpgsql;

-- Wire up the trigger on inserts.
CREATE TRIGGER htrd_compute_1m
Expand Down

0 comments on commit c1fe1e5

Please sign in to comment.