I ask this question in light of the following trigger producing this error:
ERROR: syntax error at or near "("
LINE 5: ...cessBlogPostApproval"('Blog Post Approval', concat('Your blo...
^
The trigger in question:
CREATE TRIGGER "processBlogPostApproval_AFTER_INSERT"
AFTER INSERT
ON public."ApprovedBlogPosts"
FOR EACH ROW
EXECUTE PROCEDURE public."processBlogPostApproval"('Blog Post Approval', concat('Your blog post, "', SELECT "Title" FROM public."BlogPosts" WHERE "PostID" == NEW."PostID", '"has been approved.'));
The problem seems to be arising due to the fact that I passed a concatenation function as my second argument, or rather, that I did not pass it correctly. Would appreciate your assistance in identifying which of the two is the cause of the problem.