diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2015-05-04 22:30:21 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2015-05-04 22:30:21 -0400 |
commit | c0574cd5aa96b988bb1f0287914dcc8b52fb01bd (patch) | |
tree | 33c4a033958454a19c7392539134d42435dfee19 /contrib/hstore_plpython/sql/hstore_plpython.sql | |
parent | ad8d6d064cbcc165e3033a6ed56818f711b0ffae (diff) | |
download | postgresql-c0574cd5aa96b988bb1f0287914dcc8b52fb01bd.tar.gz postgresql-c0574cd5aa96b988bb1f0287914dcc8b52fb01bd.zip |
hstore_plpython: Support tests on Python 2.3
Python 2.3 does not have the sorted() function, so do it the long way.
Diffstat (limited to 'contrib/hstore_plpython/sql/hstore_plpython.sql')
-rw-r--r-- | contrib/hstore_plpython/sql/hstore_plpython.sql | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/hstore_plpython/sql/hstore_plpython.sql b/contrib/hstore_plpython/sql/hstore_plpython.sql index 2d8aab1e7ab..e096df42fae 100644 --- a/contrib/hstore_plpython/sql/hstore_plpython.sql +++ b/contrib/hstore_plpython/sql/hstore_plpython.sql @@ -8,7 +8,9 @@ LANGUAGE plpythonu TRANSFORM FOR TYPE hstore AS $$ assert isinstance(val, dict) -plpy.info(sorted(val.items())) +i = val.items() +i.sort() +plpy.info(i) return len(val) $$; @@ -21,7 +23,9 @@ LANGUAGE plpython2u TRANSFORM FOR TYPE hstore AS $$ assert isinstance(val, dict) -plpy.info(sorted(val.items())) +i = val.items() +i.sort() +plpy.info(i) return len(val) $$; |