Skip site navigation (1) Skip section navigation (2)

python - be: Fix Portal parameters.

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: (view raw, whole thread or download thread mbox)
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:
        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 LaneDate: 2005-12-03 20:16:31
Subject: pgsql: Fix out-of-order inclusion of -L switches from LDFLAGS on AIX and
Previous:From: Bruce MomjianDate: 2005-12-03 16:45:23
Subject: pgsql: Allow to_char(interval) and to_char(time) to use AM/PM

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group