PL/Python: Fix regression tests for Python 3

This commit is contained in:
Peter Eisentraut 2015-03-11 18:30:34 -04:00
parent 4464303405
commit ff2faeec5c
1 changed files with 8 additions and 0 deletions

View File

@ -354,6 +354,14 @@ CONTEXT: PL/Python function "test_type_conversion_float8"
(1 row)
SELECT * FROM test_type_conversion_float8(100100100.654321);
INFO: (100100100.654321, <class 'float'>)
CONTEXT: PL/Python function "test_type_conversion_float8"
test_type_conversion_float8
-----------------------------
100100100.654321
(1 row)
CREATE FUNCTION test_type_conversion_oid(x oid) RETURNS oid AS $$
plpy.info(x, type(x))
return x