Add plpython code.

This commit is contained in:
Bruce Momjian
2001-05-09 19:54:38 +00:00
parent 6319f5da37
commit 0bef7ba549
26 changed files with 3891 additions and 1 deletions

View File

@ -0,0 +1,11 @@
CREATE FUNCTION test_setof() returns setof text
AS
'if GD.has_key("calls"):
GD["calls"] = GD["calls"] + 1
if GD["calls"] > 2:
return None
else:
GD["calls"] = 1
return str(GD["calls"])'
LANGUAGE 'plpython';