1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-12 02:37:31 +03:00

PL/Python: Make regression tests pass with older Python versions

Avoid output formatting differences by printing str() instead of repr()
of the value.
This commit is contained in:
Peter Eisentraut
2013-07-06 20:36:19 -04:00
parent 5b571bb8c8
commit 8182ffde5a
3 changed files with 19 additions and 19 deletions

View File

@@ -88,7 +88,7 @@ SELECT * FROM test_type_conversion_int8(null);
CREATE FUNCTION test_type_conversion_numeric(x numeric) RETURNS numeric AS $$
# print just the class name, not the type, to avoid differences
# between decimal and cdecimal
plpy.info(x, x.__class__.__name__)
plpy.info(str(x), x.__class__.__name__)
return x
$$ LANGUAGE plpythonu;