File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ LANGUAGE plpythonu
6
6
TRANSFORM FOR TYPE hstore
7
7
AS $$
8
8
assert isinstance(val, dict)
9
- plpy.info(sorted(val.items()))
9
+ i = val.items()
10
+ i.sort()
11
+ plpy.info(i)
10
12
return len(val)
11
13
$$;
12
14
SELECT test1('aa=>bb, cc=>NULL'::hstore);
@@ -23,7 +25,9 @@ LANGUAGE plpython2u
23
25
TRANSFORM FOR TYPE hstore
24
26
AS $$
25
27
assert isinstance(val, dict)
26
- plpy.info(sorted(val.items()))
28
+ i = val.items()
29
+ i.sort()
30
+ plpy.info(i)
27
31
return len(val)
28
32
$$;
29
33
SELECT test1n('aa=>bb, cc=>NULL'::hstore);
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ LANGUAGE plpythonu
8
8
TRANSFORM FOR TYPE hstore
9
9
AS $$
10
10
assert isinstance(val, dict)
11
- plpy .info (sorted(val .items ()))
11
+ i = val .items ()
12
+ i .sort ()
13
+ plpy .info (i)
12
14
return len(val)
13
15
$$;
14
16
@@ -21,7 +23,9 @@ LANGUAGE plpython2u
21
23
TRANSFORM FOR TYPE hstore
22
24
AS $$
23
25
assert isinstance(val, dict)
24
- plpy .info (sorted(val .items ()))
26
+ i = val .items ()
27
+ i .sort ()
28
+ plpy .info (i)
25
29
return len(val)
26
30
$$;
27
31
You can’t perform that action at this time.
0 commit comments