1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Fix some portability problems (get it to compile, at least, on HP's cc)

This commit is contained in:
Tom Lane
2001-10-15 19:15:18 +00:00
parent aa6970efff
commit 77f27d5ec3
5 changed files with 34 additions and 41 deletions

View File

@ -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)