Skip to content
Snippets Groups Projects
Commit 0a1e6215 authored by Joris van Zwieten's avatar Joris van Zwieten
Browse files

BugID: 1037

- Updated notify_result() (quoting and regular expression).
parent a756a808
No related branches found
No related tags found
No related merge requests found
...@@ -14,9 +14,9 @@ $$ ...@@ -14,9 +14,9 @@ $$
BEGIN BEGIN
cmd_type := "Type" FROM blackboard.command WHERE id = NEW.command_id; cmd_type := "Type" FROM blackboard.command WHERE id = NEW.command_id;
IF cmd_type ~ 'initialize|finalize|nextchunk' THEN IF cmd_type ~ '^initialize$|^finalize$|^nextchunk$' THEN
-- RAISE NOTICE 'NOTIFY %', quote_ident(TG_NAME) || '_' || cmd_type; -- RAISE NOTICE 'NOTIFY %', quote_ident(TG_NAME) || '_' || cmd_type;
EXECUTE 'NOTIFY ' || quote_ident(TG_NAME) || '_' || cmd_type; EXECUTE 'NOTIFY ' || quote_ident(TG_NAME || '_' || cmd_type);
END IF; END IF;
RETURN NULL; RETURN NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment