xssbook2/db/rest/post/api_post_update.sql

19 lines
333 B
MySQL
Raw Normal View History

CREATE FUNCTION _api.post_update()
RETURNS TRIGGER
LANGUAGE plpgsql VOLATILE
AS $BODY$
DECLARE
_length INTEGER;
BEGIN
RETURN NEW;
END
$BODY$;
GRANT EXECUTE ON FUNCTION _api.post_update() TO rest_user;
CREATE TRIGGER api_post_update_trgr
INSTEAD OF UPDATE
ON api.post
FOR EACH ROW
EXECUTE PROCEDURE _api.post_update();