Commit 1fb10498 authored by Peter Eisentraut's avatar Peter Eisentraut

plpython_error.out is for Python 2.4, plpython_error_3.out is for Python 2.5,

as it was previously.
parent 65878185
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
-- interesting. -- interesting.
SELECT invalid_type_uncaught('rick'); SELECT invalid_type_uncaught('rick');
WARNING: PL/Python: in PL/Python function "invalid_type_uncaught" WARNING: PL/Python: in PL/Python function "invalid_type_uncaught"
DETAIL: <class 'plpy.SPIError'>: unrecognized error in PLy_spi_prepare DETAIL: plpy.SPIError: unrecognized error in PLy_spi_prepare
ERROR: type "test" does not exist ERROR: type "test" does not exist
SELECT invalid_type_caught('rick'); SELECT invalid_type_caught('rick');
WARNING: PL/Python: in PL/Python function "invalid_type_caught" WARNING: PL/Python: in PL/Python function "invalid_type_caught"
DETAIL: <class 'plpy.SPIError'>: unrecognized error in PLy_spi_prepare DETAIL: plpy.SPIError: unrecognized error in PLy_spi_prepare
ERROR: type "test" does not exist ERROR: type "test" does not exist
SELECT invalid_type_reraised('rick'); SELECT invalid_type_reraised('rick');
WARNING: PL/Python: in PL/Python function "invalid_type_reraised" WARNING: PL/Python: in PL/Python function "invalid_type_reraised"
DETAIL: <class 'plpy.SPIError'>: unrecognized error in PLy_spi_prepare DETAIL: plpy.SPIError: unrecognized error in PLy_spi_prepare
ERROR: type "test" does not exist ERROR: type "test" does not exist
SELECT valid_type('rick'); SELECT valid_type('rick');
valid_type valid_type
...@@ -24,15 +24,15 @@ SELECT valid_type('rick'); ...@@ -24,15 +24,15 @@ SELECT valid_type('rick');
-- --
SELECT unicode_return_error(); SELECT unicode_return_error();
ERROR: PL/Python: could not create string representation of Python object in PL/Python function "unicode_return_error" while creating return value ERROR: PL/Python: could not create string representation of Python object in PL/Python function "unicode_return_error" while creating return value
DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128) DETAIL: exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128)
INSERT INTO unicode_test (testvalue) VALUES ('test'); INSERT INTO unicode_test (testvalue) VALUES ('test');
ERROR: PL/Python: could not compute string representation of Python object in PL/Python function "unicode_trigger_error" while modifying trigger row ERROR: PL/Python: could not compute string representation of Python object in PL/Python function "unicode_trigger_error" while modifying trigger row
DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128) DETAIL: exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128)
SELECT unicode_plan_error1(); SELECT unicode_plan_error1();
WARNING: PL/Python: in PL/Python function "unicode_plan_error1" WARNING: PL/Python: in PL/Python function "unicode_plan_error1"
DETAIL: <class 'plpy.Error'>: unrecognized error in PLy_spi_execute_plan DETAIL: plpy.Error: unrecognized error in PLy_spi_execute_plan
ERROR: PL/Python: PL/Python function "unicode_plan_error1" could not execute plan ERROR: PL/Python: PL/Python function "unicode_plan_error1" could not execute plan
DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128) DETAIL: exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128)
SELECT unicode_plan_error2(); SELECT unicode_plan_error2();
ERROR: PL/Python: PL/Python function "unicode_plan_error2" could not execute plan ERROR: PL/Python: PL/Python function "unicode_plan_error2" could not execute plan
DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128) DETAIL: exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128)
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
-- the trigger handler once. the errors and subsequent core dump were -- the trigger handler once. the errors and subsequent core dump were
-- interesting. -- interesting.
SELECT invalid_type_uncaught('rick'); SELECT invalid_type_uncaught('rick');
WARNING: plpython: in function invalid_type_uncaught: WARNING: PL/Python: in PL/Python function "invalid_type_uncaught"
DETAIL: <class 'plpy.SPIError'>: Unknown error in PLy_spi_prepare DETAIL: <class 'plpy.SPIError'>: unrecognized error in PLy_spi_prepare
ERROR: type "test" does not exist ERROR: type "test" does not exist
SELECT invalid_type_caught('rick'); SELECT invalid_type_caught('rick');
WARNING: plpython: in function invalid_type_caught: WARNING: PL/Python: in PL/Python function "invalid_type_caught"
DETAIL: <class 'plpy.SPIError'>: Unknown error in PLy_spi_prepare DETAIL: <class 'plpy.SPIError'>: unrecognized error in PLy_spi_prepare
ERROR: type "test" does not exist ERROR: type "test" does not exist
SELECT invalid_type_reraised('rick'); SELECT invalid_type_reraised('rick');
WARNING: plpython: in function invalid_type_reraised: WARNING: PL/Python: in PL/Python function "invalid_type_reraised"
DETAIL: <class 'plpy.SPIError'>: Unknown error in PLy_spi_prepare DETAIL: <class 'plpy.SPIError'>: unrecognized error in PLy_spi_prepare
ERROR: type "test" does not exist ERROR: type "test" does not exist
SELECT valid_type('rick'); SELECT valid_type('rick');
valid_type valid_type
...@@ -23,16 +23,16 @@ SELECT valid_type('rick'); ...@@ -23,16 +23,16 @@ SELECT valid_type('rick');
-- Test Unicode error handling. -- Test Unicode error handling.
-- --
SELECT unicode_return_error(); SELECT unicode_return_error();
ERROR: plpython: function "unicode_return_error" could not create return value ERROR: PL/Python: could not create string representation of Python object in PL/Python function "unicode_return_error" while creating return value
DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128) DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128)
INSERT INTO unicode_test (testvalue) VALUES ('test'); INSERT INTO unicode_test (testvalue) VALUES ('test');
ERROR: plpython: function "unicode_trigger_error" could not modify tuple ERROR: PL/Python: could not compute string representation of Python object in PL/Python function "unicode_trigger_error" while modifying trigger row
DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128) DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128)
SELECT unicode_plan_error1(); SELECT unicode_plan_error1();
WARNING: plpython: in function unicode_plan_error1: WARNING: PL/Python: in PL/Python function "unicode_plan_error1"
DETAIL: <class 'plpy.Error'>: Unknown error in PLy_spi_execute_plan DETAIL: <class 'plpy.Error'>: unrecognized error in PLy_spi_execute_plan
ERROR: plpython: function "unicode_plan_error1" could not execute plan ERROR: PL/Python: PL/Python function "unicode_plan_error1" could not execute plan
DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128) DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128)
SELECT unicode_plan_error2(); SELECT unicode_plan_error2();
ERROR: plpython: function "unicode_plan_error2" could not execute plan ERROR: PL/Python: PL/Python function "unicode_plan_error2" could not execute plan
DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128) DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment