Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id B77E2637246 for ; Fri, 3 Apr 2009 13:59:45 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 88294-08 for ; Fri, 3 Apr 2009 13:59:44 -0300 (ADT) Received: from cvs.postgresql.org (cvs.postgresql.org [217.196.146.206]) by mail.postgresql.org (Postfix) with ESMTP id 108FF637219 for ; Fri, 3 Apr 2009 13:59:44 -0300 (ADT) Received: by cvs.postgresql.org (Postfix, from userid 1007) id 1862F754ADE; Fri, 3 Apr 2009 16:59:43 +0000 (UTC) MIME-Version: 1.0 To: pgsql-committers@postgresql.org Subject: pgsql: Defend against possible crash if a plpython function does not X-Mailer: activitymail 1.24, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain Message-Id: <20090403165943.1862F754ADE@cvs.postgresql.org> Date: Fri, 3 Apr 2009 16:59:43 +0000 (UTC) From: tgl@postgresql.org (Tom Lane) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200904/38 X-Sequence-Number: 36532 Log Message: ----------- Defend against possible crash if a plpython function does not specify names for its arguments. Also add a regression test, since someone apparently changed every single plpython test case to use only named parameters; else we'd have noticed this sooner. Euler Taveira de Oliveira, per a report from Alvaro Modified Files: -------------- pgsql/src/pl/plpython/expected: plpython_function.out (r1.11 -> r1.12) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/expected/plpython_function.out?r1=1.11&r2=1.12) plpython_test.out (r1.7 -> r1.8) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/expected/plpython_test.out?r1=1.7&r2=1.8) pgsql/src/pl/plpython: plpython.c (r1.119 -> r1.120) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/plpython.c?r1=1.119&r2=1.120) pgsql/src/pl/plpython/sql: plpython_function.sql (r1.11 -> r1.12) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/sql/plpython_function.sql?r1=1.11&r2=1.12) plpython_test.sql (r1.4 -> r1.5) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/sql/plpython_test.sql?r1=1.4&r2=1.5)