mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
hstore_plpython: Fix regression tests under Python 3
This commit is contained in:
@ -8,7 +8,7 @@ LANGUAGE plpythonu
|
||||
TRANSFORM FOR TYPE hstore
|
||||
AS $$
|
||||
assert isinstance(val, dict)
|
||||
i = val.items()
|
||||
i = list(val.items())
|
||||
i.sort()
|
||||
plpy.info(i)
|
||||
return len(val)
|
||||
@ -23,7 +23,7 @@ LANGUAGE plpython2u
|
||||
TRANSFORM FOR TYPE hstore
|
||||
AS $$
|
||||
assert isinstance(val, dict)
|
||||
i = val.items()
|
||||
i = list(val.items())
|
||||
i.sort()
|
||||
plpy.info(i)
|
||||
return len(val)
|
||||
|
Reference in New Issue
Block a user