Re: plpython trigger

From: "Tom Brown" <tom(at)tbprog(dot)co(dot)uk>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: plpython trigger
Date: 2004-01-12 11:34:10
Message-ID: EOEDKNBLBIALMMKKIODAOEMMCBAA.tom@tbprog.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi
I am experimenting with postgresql and have tried to write a trigger
function
this comes up with syntax error. Clearly I am doing something wrong !!!
Any sugestions. Thanks

-- Function: "AAPython_test"()
CREATE FUNCTION "AAPython_test"() RETURNS opaque AS 'TD["new"]["aut_unused"]
=5
return TD["new"]' LANGUAGE 'plpython';

ERROR: plpython: Unable to compile function
__plpython_procedure_AAPython_test_76029_trigger
exceptions.SyntaxError: invalid syntax (line 2)
Tom Brown

Custom Database Software

Web http://www.tbprog.co.uk/

Tom Brown

Custom Database Software

Web http://www.tbprog.co.uk/

Confidentiality Notice

This transmission is intended only for the recipient(s) named above. If you
receive this email by error, you must not copy, distribute or use it's
contents in any way. In this event, please contact tom(at)tbprog(dot)co(dot)uk(dot)

Browse pgsql-novice by date

  From Date Subject
Next Message sibu xolo 2004-01-12 12:19:07 unsubscribe
Previous Message Noel 2004-01-12 06:37:46 Delete from a table with JOIN