File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ LANGUAGE plpythonu
66TRANSFORM FOR TYPE hstore
77AS $$
88assert isinstance(val, dict)
9- plpy.info(sorted(val.items()))
9+ i = val.items()
10+ i.sort()
11+ plpy.info(i)
1012return len(val)
1113$$;
1214SELECT test1('aa=>bb, cc=>NULL'::hstore);
@@ -23,7 +25,9 @@ LANGUAGE plpython2u
2325TRANSFORM FOR TYPE hstore
2426AS $$
2527assert isinstance(val, dict)
26- plpy.info(sorted(val.items()))
28+ i = val.items()
29+ i.sort()
30+ plpy.info(i)
2731return len(val)
2832$$;
2933SELECT test1n('aa=>bb, cc=>NULL'::hstore);
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ LANGUAGE plpythonu
88TRANSFORM FOR TYPE hstore
99AS $$
1010assert isinstance(val, dict)
11- plpy .info (sorted(val .items ()))
11+ i = val .items ()
12+ i .sort ()
13+ plpy .info (i)
1214return len(val)
1315$$;
1416
@@ -21,7 +23,9 @@ LANGUAGE plpython2u
2123TRANSFORM FOR TYPE hstore
2224AS $$
2325assert isinstance(val, dict)
24- plpy .info (sorted(val .items ()))
26+ i = val .items ()
27+ i .sort ()
28+ plpy .info (i)
2529return len(val)
2630$$;
2731
You can’t perform that action at this time.
0 commit comments