mirror of
https://github.com/postgres/postgres.git
synced 2026-02-03 20:40:14 -05:00
12 lines
214 B
MySQL
12 lines
214 B
MySQL
|
|
|
||
|
|
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';
|