aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2006-05-27 12:39:11 +0000
committerAndrew Dunstan <andrew@dunslane.net>2006-05-27 12:39:11 +0000
commit51b40f03a4001eaa0fe42df8f6567abe4bd32d21 (patch)
treee9d0e9fef8c401df955c0ec456bdf7b122978dc9
parent7a846ecc00b13a81adbf78b66dcf927077a802f8 (diff)
downloadpostgresql-51b40f03a4001eaa0fe42df8f6567abe4bd32d21.tar.gz
postgresql-51b40f03a4001eaa0fe42df8f6567abe4bd32d21.zip
Looks like the new plpython regression test fails on older pythons. See if this works.
-rw-r--r--src/pl/plpython/expected/plpython_function.out4
-rw-r--r--src/pl/plpython/sql/plpython_function.sql4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/pl/plpython/expected/plpython_function.out b/src/pl/plpython/expected/plpython_function.out
index d8646b675a2..d367cf66aab 100644
--- a/src/pl/plpython/expected/plpython_function.out
+++ b/src/pl/plpython/expected/plpython_function.out
@@ -123,7 +123,9 @@ CREATE FUNCTION trigger_data() returns trigger language plpythonu as $$
if TD.has_key('relid'):
TD['relid'] = "bogus:12345"
-for key in sorted(TD.keys()):
+skeys = TD.keys()
+skeys.sort()
+for key in skeys:
val = TD[key]
plpy.notice("TD[" + key + "] => " + str(val))
diff --git a/src/pl/plpython/sql/plpython_function.sql b/src/pl/plpython/sql/plpython_function.sql
index 73b1a654055..e31af9f9877 100644
--- a/src/pl/plpython/sql/plpython_function.sql
+++ b/src/pl/plpython/sql/plpython_function.sql
@@ -151,7 +151,9 @@ CREATE FUNCTION trigger_data() returns trigger language plpythonu as $$
if TD.has_key('relid'):
TD['relid'] = "bogus:12345"
-for key in sorted(TD.keys()):
+skeys = TD.keys()
+skeys.sort()
+for key in skeys:
val = TD[key]
plpy.notice("TD[" + key + "] => " + str(val))