aboutsummaryrefslogtreecommitdiff
path: root/src/pl/plpython/expected/plpython_spi.out
diff options
context:
space:
mode:
Diffstat (limited to 'src/pl/plpython/expected/plpython_spi.out')
-rw-r--r--src/pl/plpython/expected/plpython_spi.out4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pl/plpython/expected/plpython_spi.out b/src/pl/plpython/expected/plpython_spi.out
index f4910d9d52b..9cef3f2bb0b 100644
--- a/src/pl/plpython/expected/plpython_spi.out
+++ b/src/pl/plpython/expected/plpython_spi.out
@@ -19,7 +19,7 @@ CREATE FUNCTION nested_call_three(a text) RETURNS text
-- some spi stuff
CREATE FUNCTION spi_prepared_plan_test_one(a text) RETURNS text
AS
-'if not SD.has_key("myplan"):
+'if "myplan" not in SD:
q = "SELECT count(*) FROM users WHERE lname = $1"
SD["myplan"] = plpy.prepare(q, [ "text" ])
try:
@@ -32,7 +32,7 @@ return None
LANGUAGE plpythonu;
CREATE FUNCTION spi_prepared_plan_test_nested(a text) RETURNS text
AS
-'if not SD.has_key("myplan"):
+'if "myplan" not in SD:
q = "SELECT spi_prepared_plan_test_one(''%s'') as count" % a
SD["myplan"] = plpy.prepare(q)
try: