]> granicus.if.org Git - postgresql/commit
The valid return value should be MODIFY instead of MODIFIED.
authorBruce Momjian <bruce@momjian.us>
Mon, 23 Sep 2002 01:51:02 +0000 (01:51 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 23 Sep 2002 01:51:02 +0000 (01:51 +0000)
commit909a8377db7086e9d89c5e6c605430dd496c5a33
treed9a34db002d9350c19ffac15f15f115c9758b17a
parentf9a1ea6fa7fa07616aad12625031ff328624ed4a
The valid return value should be MODIFY instead of MODIFIED.
The error message said so :-)

In 25.3. Using PL/Python

        If the trigger "when" is BEFORE, you may return None or "OK"
        from the Python function to indicate the tuple is unmodified, "SKIP"
        to abort the event, or "MODIFIED" to indicate you've modified the tuple.

should read
        If the trigger "when" is BEFORE, you may return None or "OK"
        from the Python function to indicate the tuple is unmodified, "SKIP"
        to abort the event, or "MODIFY" to indicate you've modified the tuple.

elein
doc/src/sgml/plpython.sgml