python - be: Pamper Python23 with a \n. - Mailing list pgsql-committers

From jwp@pgfoundry.org (James William Pye)
Subject python - be: Pamper Python23 with a \n.
Date
Msg-id 20051229183455.66EEB11250CF@pgfoundry.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Pamper Python23 with a \n.

For whatever reason, Python 2.3, on Darwin, doesn't like a simple 'raise
Exception("foo")', so pamper it by giving it a \n to avoid an apparently
superfluous syntax error.

Do this instead of changing src/pl.c/transform() as it seems like too silly of
a corner case to justify changing tranform(). Considering this being the only
case(Python 2.3) and the unlikelyhood of a CREATE FUNCTION that contains a
raise at the end.
[Perhaps, it barely justifies the change in the tests]:

Modified Files:
--------------
    be/test/expected/80:
        trigger (r1.2 -> r1.3)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/test/expected/80/trigger.diff?r1=1.2&r2=1.3)
    be/test/expected/81:
        trigger (r1.1 -> r1.2)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/test/expected/81/trigger.diff?r1=1.1&r2=1.2)
    be/test/sql/80:
        trigger (r1.2 -> r1.3)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/test/sql/80/trigger.diff?r1=1.2&r2=1.3)
    be/test/sql/81:
        trigger (r1.1 -> r1.2)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/test/sql/81/trigger.diff?r1=1.1&r2=1.2)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Get rid of the SpinLockAcquire/SpinLockAcquire_NoHoldoff
Next
From: jwp@pgfoundry.org (James William Pye)
Date:
Subject: python - be: Clear up a few more warnings on Darwin.