pgsql: Refactor PLy_spi_prepare to save two levels of indentation

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Refactor PLy_spi_prepare to save two levels of indentation
Date: 2011-01-24 20:13:54
Message-ID: E1PhSnS-0002WV-9b@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor PLy_spi_prepare to save two levels of indentation

Instead of checking whether the arglist is NULL and then if its length
is 0, do it in one step, and outside of the try/catch block.

Jan Urbański

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=52713d02c73926898629e349a9804cd0cae0470b

Modified Files
--------------
src/pl/plpython/plpython.c | 132 ++++++++++++++++++++++----------------------
1 files changed, 66 insertions(+), 66 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2011-01-24 22:44:40 pgsql: Call PLy_spi_execute_fetch_result inside the try/catch block
Previous Message Thom Brown 2011-01-24 13:48:46 Re: pgsql: sepgsql, an SE-Linux integration for PostgreSQL