fix invalid statement error
This commit is contained in:
parent
e6b9134e8c
commit
872d7f4827
|
@ -51,7 +51,7 @@ SELECT blockbot_notify(
|
||||||
$$ LANGUAGE SQL;
|
$$ LANGUAGE SQL;
|
||||||
|
|
||||||
CREATE FUNCTION blockbot_block() RETURNS TRIGGER AS $$ BEGIN
|
CREATE FUNCTION blockbot_block() RETURNS TRIGGER AS $$ BEGIN
|
||||||
SELECT blockbot_trigger_inner(NEW.account_id, NEW.target_account_id, false);
|
PERFORM * FROM blockbot_trigger_inner(NEW.account_id, NEW.target_account_id, false);
|
||||||
RETURN NEW;
|
RETURN NEW;
|
||||||
END; $$ LANGUAGE plpgsql;
|
END; $$ LANGUAGE plpgsql;
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ FOR EACH ROW
|
||||||
EXECUTE FUNCTION blockbot_block();
|
EXECUTE FUNCTION blockbot_block();
|
||||||
|
|
||||||
CREATE FUNCTION blockbot_unblock() RETURNS TRIGGER AS $$ BEGIN
|
CREATE FUNCTION blockbot_unblock() RETURNS TRIGGER AS $$ BEGIN
|
||||||
SELECT blockbot_trigger_inner(OLD.account_id, OLD.target_account_id, true);
|
PERFORM * FROM blockbot_trigger_inner(OLD.account_id, OLD.target_account_id, true);
|
||||||
RETURN NULL;
|
RETURN NULL;
|
||||||
END; $$ LANGUAGE plpgsql;
|
END; $$ LANGUAGE plpgsql;
|
||||||
|
|
||||||
|
|
Reference in New Issue