Fix Portal parameters.
Firstly, the PLI allocated in the Query's execution context was not lasting long
enough, and secondly, it was referening the parameter tuple allocated in the
execution context as well.
Fix this by making PyPgPortal_Initialize construct the PLI in the Portal's
heap and by referencing the input object's HeapTuple. So, spin off the PLI
creation into it's own function and use it when necessary.
query.h (r1.7 -> r1.8)
portal.h (r1.6 -> r1.7)
query.c (r1.15 -> r1.16)
portal.c (r1.10 -> r1.11)
pgsql-committers by date
|Next:||From: Tom Lane||Date: 2005-12-03 20:16:31|
|Subject: pgsql: Fix out-of-order inclusion of -L switches from LDFLAGS on AIX and |
|Previous:||From: Bruce Momjian||Date: 2005-12-03 16:45:23|
|Subject: pgsql: Allow to_char(interval) and to_char(time) to use AM/PM |