From: | jwp(at)pgfoundry(dot)org (James William Pye) |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | python - be: Fix Portal parameters. |
Date: | 2005-12-03 19:44:33 |
Message-ID: | 20051203194433.31E0F1125042@pgfoundry.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Log Message:
-----------
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.
Modified Files:
--------------
be/include/pypg:
query.h (r1.7 -> r1.8)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/include/pypg/query.h.diff?r1=1.7&r2=1.8)
be/include/pypg/call:
portal.h (r1.6 -> r1.7)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/include/pypg/call/portal.h.diff?r1=1.6&r2=1.7)
be/src:
query.c (r1.15 -> r1.16)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/src/query.c.diff?r1=1.15&r2=1.16)
be/src/call:
portal.c (r1.10 -> r1.11)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/src/call/portal.c.diff?r1=1.10&r2=1.11)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-12-03 20:16:31 | pgsql: Fix out-of-order inclusion of -L switches from LDFLAGS on AIX and |
Previous Message | Bruce Momjian | 2005-12-03 16:45:23 | pgsql: Allow to_char(interval) and to_char(time) to use AM/PM |