projects
/
mir.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca4d7e9
)
Corrected Postgres 7.0 support (hopefully).
author
mj
<mj>
Thu, 27 Sep 2001 22:07:28 +0000
(22:07 +0000)
committer
mj
<mj>
Thu, 27 Sep 2001 22:07:28 +0000
(22:07 +0000)
dbscripts/dupetrigger/Makefile
patch
|
blob
|
history
dbscripts/dupetrigger/dupetrigger.c
patch
|
blob
|
history
diff --git
a/dbscripts/dupetrigger/Makefile
b/dbscripts/dupetrigger/Makefile
index
1d16e39
..
d4d0f60
100755
(executable)
--- 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
0bd94ea
..
b00e2ba
100755
(executable)
--- 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 = CurrentTrig
g
erData;
#endif
TupleDesc tupdesc;
HeapTuple rettuple;