summaryrefslogtreecommitdiff
path: root/src/pl/plpython/sql/plpython_function.sql
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 /src/pl/plpython/sql/plpython_function.sql
parent7a846ecc00b13a81adbf78b66dcf927077a802f8 (diff)
Looks like the new plpython regression test fails on older pythons. See if this works.
Diffstat (limited to 'src/pl/plpython/sql/plpython_function.sql')
-rw-r--r--src/pl/plpython/sql/plpython_function.sql4
1 files changed, 3 insertions, 1 deletions
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))