python - be: If the call's iterator hits the end, it will return NULL

From: jwp(at)pgfoundry(dot)org (James William Pye)
To: pgsql-committers(at)postgresql(dot)org
Subject: python - be: If the call's iterator hits the end, it will return NULL
Date: 2005-08-10 18:52:20
Message-ID: 20050810185220.8CA551125F50@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
If the call's iterator hits the end, it will return NULL without exception, so
handle this case simply by returning None. (Probably more context dependent
logic should be used to identify what should actually happen here. However, for now
this prevents a common invalid ERROR from being thrown.)

Modified Files:
--------------
be/src/call:
pl.c (r1.9 -> r1.10)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/src/call/pl.c.diff?r1=1.9&r2=1.10)

Browse pgsql-committers by date

  From Date Subject
Next Message James William Pye 2005-08-10 19:06:50 python - be: Only do handler based Python identification.
Previous Message User T-ishii 2005-08-10 12:11:12 pgpool - pgpool: If invalid non-switch args are given (for example,