Citation:
Erreur SQL :
ERREUR: erreur de syntaxe sur ou près de « OF »
LINE 12: AFTER UPDATE OF is_creator_absent, is_participant_absent
^
Dans l'instruction :
CREATE OR REPLACE FUNCTION delete_dialog()
RETURNS TRIGGER
AS $$
BEGIN
IF ((NEW.beginning = FALSE) AND (NEW.is_creator_absent = TRUE) AND (NEW.is_participant_absent = TRUE)) THEN
DELETE FROM dialog WHERE dialog_id = NEW.dialog_id;
END IF;
END;
$$ LANGUAGE plpgsql;
CREATE TRIGGER check_end_of_dialog
AFTER UPDATE OF is_creator_absent, is_participant_absent
ON dialog
EXECUTE PROCEDURE delete_dialog();
en effet j'ai la version 8.4 de postgresql, je pensais pourtant avoir installé la version la plus réçente Oo.