OSDN Git Service

Looks like the new plpython regression test fails on older pythons. See if this works.
authorAndrew Dunstan <andrew@dunslane.net>
Sat, 27 May 2006 12:39:11 +0000 (12:39 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Sat, 27 May 2006 12:39:11 +0000 (12:39 +0000)
src/pl/plpython/expected/plpython_function.out
src/pl/plpython/sql/plpython_function.sql

index d8646b6..d367cf6 100644 (file)
@@ -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))
 
index 73b1a65..e31af9f 100644 (file)
@@ -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))