mirror of
https://github.com/postgres/postgres.git
synced 2026-06-02 22:08:41 -04:00
Add plpython code.
This commit is contained in:
@@ -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';
|
||||
Reference in New Issue
Block a user