Skip site navigation (1) Skip section navigation (2)

python - be: Pamper Python23 with a \n.

From: jwp(at)pgfoundry(dot)org (James William Pye)
To: pgsql-committers(at)postgresql(dot)org
Subject: python - be: Pamper Python23 with a \n.
Date: 2005-12-29 18:34:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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:
        trigger (r1.2 -> r1.3)
        trigger (r1.1 -> r1.2)
        trigger (r1.2 -> r1.3)
        trigger (r1.1 -> r1.2)

pgsql-committers by date

Next:From: James William PyeDate: 2005-12-29 18:43:03
Subject: python - be: Clear up a few more warnings on Darwin.
Previous:From: Tom LaneDate: 2005-12-29 18:08:06
Subject: pgsql: Get rid of the SpinLockAcquire/SpinLockAcquire_NoHoldoff

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group