Corrected Postgres 7.0 support (hopefully).
authormj <mj>
Thu, 27 Sep 2001 22:07:28 +0000 (22:07 +0000)
committermj <mj>
Thu, 27 Sep 2001 22:07:28 +0000 (22:07 +0000)
dbscripts/dupetrigger/Makefile
dbscripts/dupetrigger/dupetrigger.c

index 1d16e39..d4d0f60 100755 (executable)
@@ -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 
index 0bd94ea..b00e2ba 100755 (executable)
@@ -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;