diff options
Diffstat (limited to 'contrib/spi/timetravel.c')
-rw-r--r-- | contrib/spi/timetravel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/spi/timetravel.c b/contrib/spi/timetravel.c index 8bae3131dcf..14621244a98 100644 --- a/contrib/spi/timetravel.c +++ b/contrib/spi/timetravel.c @@ -118,11 +118,11 @@ timetravel(PG_FUNCTION_ARGS) elog(ERROR, "timetravel: not fired by trigger manager"); /* Should be called for ROW trigger */ - if (TRIGGER_FIRED_FOR_STATEMENT(trigdata->tg_event)) - elog(ERROR, "timetravel: cannot process STATEMENT events"); + if (!TRIGGER_FIRED_FOR_ROW(trigdata->tg_event)) + elog(ERROR, "timetravel: must be fired for row"); /* Should be called BEFORE */ - if (TRIGGER_FIRED_AFTER(trigdata->tg_event)) + if (!TRIGGER_FIRED_BEFORE(trigdata->tg_event)) elog(ERROR, "timetravel: must be fired before event"); /* INSERT ? */ |