diff options
author | Tom Lane | 2001-10-15 19:15:18 +0000 |
---|---|---|
committer | Tom Lane | 2001-10-15 19:15:18 +0000 |
commit | 77f27d5ec36584addbbad0239d31753240e44001 (patch) | |
tree | bb10398a8c365adb7ecb79df35b06b87560381b2 /contrib/rserv/rserv.c | |
parent | aa6970efff0569801f7d09235fdd193ebaee62d7 (diff) |
Fix some portability problems (get it to compile, at least, on HP's cc)
Diffstat (limited to 'contrib/rserv/rserv.c')
-rw-r--r-- | contrib/rserv/rserv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/rserv/rserv.c b/contrib/rserv/rserv.c index 4a7d3aed350..02c71220d62 100644 --- a/contrib/rserv/rserv.c +++ b/contrib/rserv/rserv.c @@ -87,12 +87,14 @@ _rserv_log_() if (TRIGGER_FIRED_BY_UPDATE(CurrentTriggerData->tg_event)) newtuple = CurrentTriggerData->tg_newtuple; +#ifndef PG_FUNCTION_INFO_V1 /* * Setting CurrentTriggerData to NULL prevents direct calls to trigger * functions in queries. Normally, trigger functions have to be called * by trigger manager code only. */ CurrentTriggerData = NULL; +#endif /* Connect to SPI manager */ if ((ret = SPI_connect()) < 0) |