mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-08 08:37:40 +08: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