]> granicus.if.org Git - postgresql/commitdiff
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 d8646b675a2f991517563b927540c1e93ccb7902..d367cf66aabe5c1cfb3ddb15d6b579daf8567ed6 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 73b1a6540559d0fd5fae6f35696a13afa3c17486..e31af9f9877101e853bf67fbc13d238e51501ba2 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))