python - be: Fix Portal seeking.

From: jwp(at)pgfoundry(dot)org (James William Pye)
To: pgsql-committers(at)postgresql(dot)org
Subject: python - be: Fix Portal seeking.
Date: 2005-08-17 02:23:27
Message-ID: 20050817022327.9477D1125017@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix Portal seeking. _port_seek was mostly broken. Subsequently, seek based
operations like __getitem__ and __len__ were as well. Do error checking in
port_read to be sure the given object is a PyInt.

Additionally, add the "scroll" method. Like seek, but implies whence = 1, and
does not return the position difference.

Modified Files:
--------------
be/src/call:
portal.c (r1.6 -> r1.7)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/src/call/portal.c.diff?r1=1.6&r2=1.7)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2005-08-17 03:51:02 pgsql: Fix FSM warning to mention increasing max_fsm_pages.
Previous Message Bruce Momjian 2005-08-17 01:45:32 pgsql: Minor cleanup.