From: mj Date: Thu, 27 Sep 2001 22:07:28 +0000 (+0000) Subject: Corrected Postgres 7.0 support (hopefully). X-Git-Tag: prexmlproducerconfig~403 X-Git-Url: http://erislabs.net/gitweb/?p=mir.git;a=commitdiff_plain;h=f42491bc5d23406a8e1e7fada5996a9b7de160c8 Corrected Postgres 7.0 support (hopefully). --- diff --git a/dbscripts/dupetrigger/Makefile b/dbscripts/dupetrigger/Makefile index 1d16e394..d4d0f605 100755 --- a/dbscripts/dupetrigger/Makefile +++ b/dbscripts/dupetrigger/Makefile @@ -7,12 +7,12 @@ PGVERSION=-DPG70 CFLAGS=-I$(PGINC) $(PGVERSION) # If changed, also change postgresql.script -INSTALLDIR=../../../Mir/src +INSTALLDIR=. #./../../Mir/src install: dupetrigger.so cp dupetrigger.so $(INSTALLDIR) - chmod 755 $(INSTALLDIR)/dupetrigger.so + chmod 644 $(INSTALLDIR)/dupetrigger.so # # Now, change the path to dupetrigger.so in postgresql.script to the # absolute path where dupetrigger.so is installed (this diff --git a/dbscripts/dupetrigger/dupetrigger.c b/dbscripts/dupetrigger/dupetrigger.c index 0bd94ea8..b00e2bab 100755 --- a/dbscripts/dupetrigger/dupetrigger.c +++ b/dbscripts/dupetrigger/dupetrigger.c @@ -106,7 +106,7 @@ Datum dupecheck(PG_FUNCTION_ARGS) #ifdef PG71 TriggerData *trigdata = (TriggerData *) fcinfo->context; #else - TriggerData *trigdata = CurrentTrigerData; + TriggerData *trigdata = CurrentTriggerData; #endif TupleDesc tupdesc; HeapTuple rettuple;